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
@@ -645,8 +645,8 @@ SIGAR_DECLARE(int) sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
proctime->start_time = 0;
|
||||
}
|
||||
|
||||
proctime->utime = FILETIME2SEC(user_time);
|
||||
proctime->stime = FILETIME2SEC(system_time);
|
||||
proctime->user = FILETIME2SEC(user_time);
|
||||
proctime->sys = FILETIME2SEC(system_time);
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user