From 219bb9ccff0881a2972c38f012a306c60fcb2123 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 28 Mar 2011 19:06:06 +0000 Subject: handle large values for process time --- Process.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index 8956201d..c1415685 100644 --- a/Process.c +++ b/Process.c @@ -103,10 +103,10 @@ typedef struct Process_ { unsigned long int majflt; unsigned long int cmajflt; #endif - unsigned long int utime; - unsigned long int stime; - long int cutime; - long int cstime; + unsigned long long int utime; + unsigned long long int stime; + unsigned long long int cutime; + unsigned long long int cstime; long int priority; long int nice; long int nlwp; @@ -263,7 +263,7 @@ static void Process_printLargeNumber(Process* this, RichString* str, unsigned lo static double jiffy = 0.0; -static void Process_printTime(RichString* str, unsigned long t) { +static void Process_printTime(RichString* str, unsigned long long t) { if(jiffy == 0.0) jiffy = sysconf(_SC_CLK_TCK); double jiffytime = 1.0 / jiffy; -- cgit v1.2.3