--- fs/proc/proc_misc.c.old Wed Mar 19 15:21:20 2003 +++ fs/proc/proc_misc.c Wed Mar 19 15:31:36 2003 @@ -250,6 +250,7 @@ static int kstat_read_proc(char *page, char **start, off_t off, int count, int *eof, void *data) { + static unsigned long btime = 0UL; int i, len; extern unsigned long total_forks; unsigned long jif = jiffies; @@ -314,12 +315,15 @@ } } + if (!btime) + btime = xtime.tv_sec - jif / HZ; + len += sprintf(page + len, "\nctxt %lu\n" "btime %lu\n" "processes %lu\n", nr_context_switches(), - xtime.tv_sec - jif / HZ, + btime, total_forks); return proc_calc_metrics(page, start, off, count, eof, len);