summaryrefslogtreecommitdiff
path: root/get_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'get_load.c')
-rw-r--r--get_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/get_load.c b/get_load.c
index 0828350..185a7fb 100644
--- a/get_load.c
+++ b/get_load.c
@@ -641,7 +641,7 @@ GetLoadPoint(Widget w, XtPointer closure, XtPointer call_data)
if ((vp = kstat_data_lookup(ksp, "avenrun_1min")) == NULL)
xload_error("kstat_data_lookup failed:", strerror(errno));
- *loadavg = (double)vp->value.l / FSCALE;
+ *loadavg = (double)vp->value.ui32 / FSCALE;
}
#else /* not Solaris */