Browse Source

*** empty log message ***

Mike Goslin 25 years ago
parent
commit
e6619abec0
1 changed files with 3 additions and 1 deletions
  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