add proc_time.total field (sum of user+sys)
This commit is contained in:
1 parent
606275fc36
commit
4736d77c87
10 files changed
+15
-1
No files matched your search
@@ -647,6 +647,7 @@ SIGAR_DECLARE(int) sigar_proc_time_get(sigar_t *sigar, sigar_pid_t pid,
|
||||
|
||||
proctime->user = FILETIME2SEC(user_time);
|
||||
proctime->sys = FILETIME2SEC(system_time);
|
||||
proctime->total = proctime->user + proctime->sys;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user