From 6d7b04b6e82bda4815bc8203f11dc4147c1d1656 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 16 Mar 2008 19:31:00 +0000 Subject: [PATCH] use time_now_millis --- src/sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sigar.c b/src/sigar.c index 528d9ef4..218f919b 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -110,7 +110,7 @@ SIGAR_DECLARE(int) sigar_proc_cpu_get(sigar_t *sigar, sigar_pid_t pid, { sigar_cache_entry_t *entry; sigar_proc_cpu_t *prev; - sigar_uint64_t otime, time_now = time(NULL) * 1000; + sigar_uint64_t otime, time_now = sigar_time_now_millis(); sigar_int64_t time_diff, total_diff; int status;