- wrapper: fix bug that reported wildly wrong CPU time

svn path=/trunk/boinc/; revision=25457
This commit is contained in:
David Anderson 2012-03-19 20:42:03 +00:00
parent 64210d0420
commit 9a77dcc71f
2 changed files with 7 additions and 0 deletions

View File

@ -2793,3 +2793,9 @@ David 19 Mar 2011
lib/
procinfo.cpp
David 19 Mar 2011
- wrapper: fix bug that reported wildly wrong CPU time
lib/
procinfo.cpp

View File

@ -154,6 +154,7 @@ double process_tree_cpu_time(int pid) {
retval = procinfo_setup(pm);
if (retval) return 0;
pi.clear();
pi.id = pid;
procinfo_app(pi, NULL, pm, NULL);
return pi.user_time + pi.kernel_time;