summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/procproperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procproperties.cpp b/src/procproperties.cpp
index b378dc6..b8af0d1 100644
--- a/src/procproperties.cpp
+++ b/src/procproperties.cpp
@@ -120,7 +120,7 @@ fill_proc_properties (GtkWidget *tree, ProcInfo *info)
int HZ;
int mib[] = { CTL_KERN, KERN_CLOCKRATE };
- if (sysctl (mib, nitems(mib), &cinf, &size, NULL, 0) == -1)
+ if (sysctl (mib, G_N_ELEMENTS (mib), &cinf, &size, NULL, 0) == -1)
HZ = 100;
else
HZ = cinf.hz;