Only print the warning if (number of real cpu's) != (number of cpu's
2006-08-10 Benoît Dejean <benoit@placenet.org> * open.c: (glibtop_open_s): Only print the warning if (number of real cpu's) != (number of cpu's monitored). Patch by Wouter Bolsterlee (uws) <uws+gnome@xs4all.nl>. Closes #350705.
This commit is contained in:
committed by
Benoît Dejean
parent
08887909fa
commit
610c0071cc
@@ -91,9 +91,11 @@ glibtop_open_s (glibtop *server, const char *program_name,
|
||||
|
||||
server->ncpu = MIN(GLIBTOP_NCPU - 1, server->real_ncpu);
|
||||
|
||||
glibtop_warn_r(server,
|
||||
"This machine has %d CPUs, "
|
||||
"%d are being monitored.",
|
||||
server->real_ncpu + 1,
|
||||
server->ncpu + 1);
|
||||
if (server->real_ncpu != server->ncpu) {
|
||||
glibtop_warn_r(server,
|
||||
"This machine has %d CPUs, "
|
||||
"%d are being monitored.",
|
||||
server->real_ncpu + 1,
|
||||
server->ncpu + 1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user