From cfc13f94f960b25155157f90aa5731aba86e5d4e Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 3 Nov 2005 16:23:24 +0000 Subject: [PATCH] [project @ 2005-11-03 16:23:24 by simonmar] wibble --- ghc/rts/posix/GetTime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/rts/posix/GetTime.c b/ghc/rts/posix/GetTime.c index 825ede6..cbc277f 100644 --- a/ghc/rts/posix/GetTime.c +++ b/ghc/rts/posix/GetTime.c @@ -119,7 +119,7 @@ Ticks getThreadCPUTime(void) struct timespec ts; clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); return (ts.tv_sec * TICKS_PER_SECOND + - ts.tv_nsec / (1000000000/TICKS_PER_SECOND)); + ((Ticks)ts.tv_nsec * TICKS_PER_SECOND) / 1000000000); #else return getProcessCPUTime(); #endif -- 1.7.10.4