convert start_time to millis

This commit is contained in:
Doug MacEachern 2005-02-18 23:54:33 +00:00
parent 3e3e117f18
commit 0bd202c57b
1 changed files with 2 additions and 2 deletions

View File

@ -723,7 +723,7 @@ int sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
{ {
int status = sigar_get_pinfo(sigar, pid); int status = sigar_get_pinfo(sigar, pid);
struct kinfo_proc *pinfo = sigar->pinfo; struct kinfo_proc *pinfo = sigar->pinfo;
if (status != SIGAR_OK) { if (status != SIGAR_OK) {
return status; return status;
} }
@ -738,7 +738,7 @@ int sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
proctime->total = proctime->user + proctime->sys; proctime->total = proctime->user + proctime->sys;
#endif #endif
proctime->start_time = tv2sec(pinfo->KI_START); proctime->start_time = tv2sec(pinfo->KI_START) * 1000;
return SIGAR_OK; return SIGAR_OK;
} }