Browse Source

Torrent creator: raise maximum piece size to 32 MiB

adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
5c50dba9e1
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  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