renaming proc_time.{utime,stime} to proc_time.{user,sys}
'utime' and 'stime' are common within system structures, but with lots of other stuff in the structure unrelated to time. having 'time' in both the structure/class name and the field at the sigar level is just lame.
This commit is contained in:
1 parent
641253b359
commit
606275fc36
16 files changed
+46
-30
No files matched your search
@@ -965,8 +965,8 @@ int sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
|
||||
proctime->start_time = pinfo->pi_start;
|
||||
proctime->start_time *= 1000; /* convert to ms */
|
||||
proctime->utime = pinfo->pi_utime;
|
||||
proctime->stime = pinfo->pi_stime;
|
||||
proctime->user = pinfo->pi_utime;
|
||||
proctime->sys = pinfo->pi_stime;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user