diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-30 21:45:02 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-01-30 21:45:02 +0530 |
commit | f988dcd6f99dc2a38917ad7c0a0630e0e4de2e2d (patch) | |
tree | 67db68fc1ce3fe1687e2f70db2fb27a258504519 /proc.cpp | |
parent | 143091edad3ff66a1f7f301e7e44cc557a9d31eb (diff) |
Fixed compilation errors caused by latest commits
Diffstat (limited to 'proc.cpp')
-rw-r--r-- | proc.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -20,6 +20,7 @@ Some of the code in this file is based on code from the Glibc manual. #include <termios.h> #include <sys/types.h> #include <sys/stat.h> +#include <algorithm> #ifdef HAVE_SYS_TERMIOS_H #include <sys/termios.h> @@ -771,12 +772,13 @@ unsigned long proc_get_jiffies( process_t *p ) */ void proc_update_jiffies() { - job_t *j; + job_t* job; process_t *p; - - for( j=first_job; j; j=j->next ) + job_iterator_t j; + + for( job = j.next(); job; job = j.next() ) { - for( p=j->first_process; p; p=p->next ) + for( p=job->first_process; p; p=p->next ) { gettimeofday( &p->last_time, 0 ); p->last_jiffies = proc_get_jiffies( p ); |