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
@@ -1,3 +1,12 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2006-07-27 Benoît Dejean <benoit@placenet.org>
|
2006-07-27 Benoît Dejean <benoit@placenet.org>
|
||||||
|
|
||||||
* netload.c: (glibtop_get_netload_s):
|
* netload.c: (glibtop_get_netload_s):
|
||||||
|
@@ -91,9 +91,11 @@ glibtop_open_s (glibtop *server, const char *program_name,
|
|||||||
|
|
||||||
server->ncpu = MIN(GLIBTOP_NCPU - 1, server->real_ncpu);
|
server->ncpu = MIN(GLIBTOP_NCPU - 1, server->real_ncpu);
|
||||||
|
|
||||||
glibtop_warn_r(server,
|
if (server->real_ncpu != server->ncpu) {
|
||||||
"This machine has %d CPUs, "
|
glibtop_warn_r(server,
|
||||||
"%d are being monitored.",
|
"This machine has %d CPUs, "
|
||||||
server->real_ncpu + 1,
|
"%d are being monitored.",
|
||||||
server->ncpu + 1);
|
server->real_ncpu + 1,
|
||||||
|
server->ncpu + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user