Revert e9df4eb, experimental randomization of number of messages to download, because it didn't change anything (except for slowing the download even more).

This commit is contained in:
Fabian Schlenz 2017-02-14 06:46:40 +01:00
parent e9df4ebdb4
commit fb2db5b639
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ public class DownloadManager {
while (ids.size()>0) {
logger.trace("Loop");
TLIntVector vector = new TLIntVector();
int download_count = Config.GET_MESSAGES_BATCH_SIZE - (int)(Math.random() * Config.GET_MESSAGES_BATCH_SIZE * 0.2);
int download_count = Config.GET_MESSAGES_BATCH_SIZE;
logger.trace("download_count: {}", download_count);
for (int i=0; i<download_count; i++) {
if (ids.size()==0) break;