From b86a9f0d8d18711126eca938f3ce1b1e31361a74 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 20 Oct 2009 20:23:31 +0000 Subject: [PATCH] reduce download spam in log --- direct/src/plugin/p3dDownload.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/direct/src/plugin/p3dDownload.cxx b/direct/src/plugin/p3dDownload.cxx index 944ffae480..ae5862c058 100755 --- a/direct/src/plugin/p3dDownload.cxx +++ b/direct/src/plugin/p3dDownload.cxx @@ -165,11 +165,11 @@ receive_data(const unsigned char *this_data, size_t this_data_size) { void P3DDownload:: download_progress() { time_t now = time(NULL); - if (now != _last_reported_time || true) { + if (now - _last_reported_time > 10) { _last_reported_time = now; + nout << "Downloading " << get_url() << ": " + << int(get_download_progress() * 1000.0) / 10.0 << "\n"; } - nout << "Downloading " << get_url() << ": " - << int(get_download_progress() * 1000.0) / 10.0 << "\n"; } ////////////////////////////////////////////////////////////////////