- client: a few more network_status_debug messages

client/
		client_state.C
		net_stats.C

svn path=/trunk/boinc/; revision=12805
This commit is contained in:
David Anderson 2007-06-01 22:55:00 +00:00
parent 60f3e05410
commit c02a7d30fe
3 changed files with 19 additions and 1 deletions

View File

@ -5682,3 +5682,10 @@ David 1 June 2007
lib/ lib/
diagnostics_sin.h diagnostics_sin.h
procinfo.h procinfo.h
David 1 June 2007
- client: a few more network_status_debug messages
client/
client_state.C
net_stats.C

View File

@ -442,6 +442,12 @@ bool CLIENT_STATE::poll_slow_events() {
now = dtime(); now = dtime();
if (now - old_now > POLL_INTERVAL*10) { if (now - old_now > POLL_INTERVAL*10) {
if (log_flags.network_status_debug) {
msg_printf(0, MSG_INFO,
"[network_status_debug] woke up after %f seconds",
now - old_now
);
}
last_wakeup_time = now; last_wakeup_time = now;
} }

View File

@ -222,6 +222,11 @@ void NET_STATUS::got_http_error() {
// for 30 seconds after wakeup, the network system (DNS etc.) // for 30 seconds after wakeup, the network system (DNS etc.)
// may still be coming up, so don't worry for now // may still be coming up, so don't worry for now
) { ) {
if (log_flags.network_status_debug) {
msg_printf(0, MSG_INFO,
"[network_status_debug] got http error and not still waking up"
);
}
need_to_contact_reference_site = true; need_to_contact_reference_site = true;
show_ref_message = true; show_ref_message = true;
} }