Browse Source

Merge pull request #8240 from Chocobo1/size

Torrent creator: raise maximum piece size to 32 MiB
adaptive-webui-19844
Mike Tzou 7 years ago committed by GitHub
parent
commit
84b9929025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/gui/torrentcreatordlg.cpp
  2. 5
      src/gui/torrentcreatordlg.ui

2
src/gui/torrentcreatordlg.cpp

@ -113,7 +113,7 @@ void TorrentCreatorDlg::onAddFileButtonClicked() @@ -113,7 +113,7 @@ void TorrentCreatorDlg::onAddFileButtonClicked()
int TorrentCreatorDlg::getPieceSize() const
{
const int pieceSizes[] = {0, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384}; // base unit in KiB
const int pieceSizes[] = {0, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768}; // base unit in KiB
return pieceSizes[m_ui->comboPieceSize->currentIndex()] * 1024;
}

5
src/gui/torrentcreatordlg.ui

@ -164,6 +164,11 @@ @@ -164,6 +164,11 @@
<string>16 MiB</string>
</property>
</item>
<item>
<property name="text">
<string>32 MiB</string>
</property>
</item>
</widget>
</item>
<item>

Loading…
Cancel
Save