From 0bd202c57bccf2330749eb01a63edfaac9495972 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 18 Feb 2005 23:54:33 +0000 Subject: [PATCH] convert start_time to millis --- src/os/darwin/darwin_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 2f98f623..ca544f3c 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -723,7 +723,7 @@ int sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid, { int status = sigar_get_pinfo(sigar, pid); struct kinfo_proc *pinfo = sigar->pinfo; - + if (status != SIGAR_OK) { return status; } @@ -738,7 +738,7 @@ int sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid, proctime->total = proctime->user + proctime->sys; #endif - proctime->start_time = tv2sec(pinfo->KI_START); + proctime->start_time = tv2sec(pinfo->KI_START) * 1000; return SIGAR_OK; }