1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

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

View File

@ -173,7 +173,7 @@ public class DownloadManager {
while (ids.size()>0) { while (ids.size()>0) {
logger.trace("Loop"); logger.trace("Loop");
TLIntVector vector = new TLIntVector(); 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); logger.trace("download_count: {}", download_count);
for (int i=0; i<download_count; i++) { for (int i=0; i<download_count; i++) {
if (ids.size()==0) break; if (ids.size()==0) break;