summaryrefslogtreecommitdiff
path: root/rootdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir.c')
-rw-r--r--rootdir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rootdir.c b/rootdir.c
index 50f6e071..1d9c083c 100644
--- a/rootdir.c
+++ b/rootdir.c
@@ -7,6 +7,7 @@
#include <ps.h>
#include "procfs.h"
#include "procfs_dir.h"
+#include "main.h"
/* This implements a directory node with the static files in /proc */
@@ -105,7 +106,7 @@ rootdir_gc_stat (void *hook, void **contents, size_t *contents_len)
return EIO;
timersub (&time, &boottime, &time);
- up_ticks = sysconf(_SC_CLK_TCK) * (time.tv_sec + time.tv_usec / 1000000.);
+ up_ticks = opt_clk_tck * (time.tv_sec + time.tv_usec / 1000000.);
*contents_len = asprintf ((char **) contents,
/* Does Mach keeps track of any of this? */