mirror of https://github.com/BOINC/boinc.git
- client: remove debug msgs
svn path=/trunk/boinc/; revision=20285
This commit is contained in:
parent
ee889ac9dd
commit
7d4d65e42c
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue