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
@@ -420,8 +420,8 @@ static int get_proc_times(sigar_pid_t pid, sigar_proc_time_t *time)
|
||||
time_value_add(&utime, &tti.user_time);
|
||||
time_value_add(&stime, &tti.system_time);
|
||||
|
||||
time->utime = utime.seconds;
|
||||
time->stime = stime.seconds;
|
||||
time->user = utime.seconds;
|
||||
time->sys = stime.seconds;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user