From e6619abec05036a848fec7a9e455e7533f086dc3 Mon Sep 17 00:00:00 2001 From: Mike Goslin Date: Wed, 15 Nov 2000 04:18:12 +0000 Subject: [PATCH] *** empty log message *** --- panda/src/downloader/downloader.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/downloader/downloader.cxx b/panda/src/downloader/downloader.cxx index 0bce9d5552..ce2036c6d9 100644 --- a/panda/src/downloader/downloader.cxx +++ b/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