ソースを参照

*** empty log message ***

Mike Goslin 25 年 前
コミット
e6619abec0
1 ファイル変更3 行追加1 行削除
  1. 3 1
      panda/src/downloader/downloader.cxx

+ 3 - 1
panda/src/downloader/downloader.cxx

@@ -498,7 +498,9 @@ download(const string &file_name, Filename file_dest,
 #ifdef HAVE_IPC
       _bandwidth_frequency_lock.lock();
 #endif
- 	int read_size = (int)(_bandwidth * _frequency);	
+	int read_size = (int)_bandwidth;
+	if (_frequency > 0)
+ 	  read_size = (int)(_bandwidth * _frequency);	
 #ifdef HAVE_IPC
       _bandwidth_frequency_lock.unlock();
 #endif