From a28cf84001fdeeda00b48254e205bae200a24bc8 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 15 Nov 2004 00:56:34 +0000 Subject: [PATCH] use sysconf to get ticks --- src/os/linux/linux_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index 7ba43994..3bad9975 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -113,7 +113,7 @@ int sigar_os_open(sigar_t **sigar) ptr = sigar_skip_token(ptr); (*sigar)->boot_time = sigar_strtoul(ptr); - (*sigar)->ticks = 100; /* HZ */ + (*sigar)->ticks = sysconf(_SC_CLK_TCK); (*sigar)->ram = -1;