diff --git a/checkin_notes b/checkin_notes index 16f79730c1..7cc936ef63 100644 --- a/checkin_notes +++ b/checkin_notes @@ -752,3 +752,9 @@ David 27 Jan 2010 work_fetch.cpp,h lib/ gui_rpc_client_ops.cpp + +David 27 Jan 2010 + - client: remove debug msgs + + client/ + app.cpp diff --git a/client/app.cpp b/client/app.cpp index a5b8e88c3a..e683adfe42 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -375,11 +375,13 @@ void ACTIVE_TASK_SET::get_memory_usage() { // PROCINFO pi; procinfo_other(pi, piv); - msg_printf(NULL, MSG_INFO, "All others: RAM %.2fMB, page %.2fMB, user %.3f, kernel %.3f", - pi.working_set_size/MEGA, pi.swap_size/MEGA, - pi.user_time, pi.kernel_time - ); - + if (log_flags.mem_usage_debug) { + msg_printf(NULL, MSG_INFO, + "All others: RAM %.2fMB, page %.2fMB, user %.3f, kernel %.3f", + pi.working_set_size/MEGA, pi.swap_size/MEGA, + pi.user_time, pi.kernel_time + ); + } double new_cpu_time = pi.user_time + pi.kernel_time; if (first) { first = false; @@ -388,7 +390,11 @@ void ACTIVE_TASK_SET::get_memory_usage() { // processes might have exited in the last 10 sec, // causing this to be negative. if (non_boinc_cpu_usage < 0) non_boinc_cpu_usage = 0; - msg_printf(NULL, MSG_INFO, "non-BOINC CPU usage: %f%%", non_boinc_cpu_usage*100); + if (log_flags.mem_usage_debug) { + msg_printf(NULL, MSG_INFO, + "non-BOINC CPU usage: %f%%", non_boinc_cpu_usage*100 + ); + } } last_cpu_time = new_cpu_time; }