[gnome-system-monitor] Make process properties CPU time consistent with top on *BSD
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Make process properties CPU time consistent with top on *BSD
- Date: Mon, 4 Feb 2013 23:37:15 +0000 (UTC)
commit b4a7eca7a89f989f6c9ebab8a5f13c83509a831e
Author: Robert Roth <robert roth off gmail com>
Date: Tue Feb 5 01:36:22 2013 +0200
Make process properties CPU time consistent with top on *BSD
src/procproperties.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index 8b051f7..29f9fab 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -123,7 +123,7 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info)
if (sysctl (mib, G_N_ELEMENTS (mib), &cinf, &size, NULL, 0) == -1)
HZ = 100;
else
- HZ = cinf.hz;
+ HZ = (cinf.stathz ? cinf.stathz : cinf.hz);
#endif
proc_arg proc_props[] = {
{ N_("Process Name"), g_strdup_printf("%s", info->name)},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]