mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
reduce download spam in log
This commit is contained in:
parent
024c9c31cb
commit
b86a9f0d8d
@ -165,12 +165,12 @@ receive_data(const unsigned char *this_data, size_t this_data_size) {
|
|||||||
void P3DDownload::
|
void P3DDownload::
|
||||||
download_progress() {
|
download_progress() {
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
if (now != _last_reported_time || true) {
|
if (now - _last_reported_time > 10) {
|
||||||
_last_reported_time = now;
|
_last_reported_time = now;
|
||||||
}
|
|
||||||
nout << "Downloading " << get_url() << ": "
|
nout << "Downloading " << get_url() << ": "
|
||||||
<< int(get_download_progress() * 1000.0) / 10.0 << "\n";
|
<< int(get_download_progress() * 1000.0) / 10.0 << "\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: P3DDownload::download_finished
|
// Function: P3DDownload::download_finished
|
||||||
|
Loading…
x
Reference in New Issue
Block a user