use sysconf to get ticks

This commit is contained in:
Doug MacEachern 2004-11-15 00:56:34 +00:00
parent a44e55ab6a
commit a28cf84001
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ int sigar_os_open(sigar_t **sigar)
ptr = sigar_skip_token(ptr); ptr = sigar_skip_token(ptr);
(*sigar)->boot_time = sigar_strtoul(ptr); (*sigar)->boot_time = sigar_strtoul(ptr);
(*sigar)->ticks = 100; /* HZ */ (*sigar)->ticks = sysconf(_SC_CLK_TCK);
(*sigar)->ram = -1; (*sigar)->ram = -1;