diff options
author | Nathan Scott <nathans@redhat.com> | 2021-07-29 09:41:41 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-07-29 10:15:43 +0200 |
commit | 19ad28a560a321252c0ec25e5ea3feea36e175f9 (patch) | |
tree | 1737ed585773ca1416c2a10f9240d1ea9c4a5886 | |
parent | 97d9b320ad1ce3e8c505682a36ce663c59eeee1a (diff) |
PCP: fix per-process user and system time conversions
-rw-r--r-- | pcp/PCPProcessList.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index 77f82095..2731a8ae 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -154,8 +154,8 @@ static void PCPProcessList_updateInfo(Process* process, int pid, int offset, cha pp->cminflt = Metric_instance_u32(PCP_PROC_CMINFLT, pid, offset, 0); process->majflt = Metric_instance_u32(PCP_PROC_MAJFLT, pid, offset, 0); pp->cmajflt = Metric_instance_u32(PCP_PROC_CMAJFLT, pid, offset, 0); - pp->utime = Metric_instance_u64(PCP_PROC_UTIME, pid, offset, 0); - pp->stime = Metric_instance_u64(PCP_PROC_STIME, pid, offset, 0); + pp->utime = Metric_instance_time(PCP_PROC_UTIME, pid, offset); + pp->stime = Metric_instance_time(PCP_PROC_STIME, pid, offset); pp->cutime = Metric_instance_time(PCP_PROC_CUTIME, pid, offset); pp->cstime = Metric_instance_time(PCP_PROC_CSTIME, pid, offset); process->priority = Metric_instance_u32(PCP_PROC_PRIORITY, pid, offset, 0); |