summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-06-25 03:06:36 +0000
committerHisham Muhammad <hisham@gobolinux.org>2012-06-25 03:06:36 +0000
commit078b831696798d7b582149645167f2898dc79a19 (patch)
tree668c2a5fa5b498dff75bae91ac3c91be7c8c7fd0 /Process.c
parent0d8f654343c020411477366c093d944d8ba230ff (diff)
don't downcast to int before determining number of hours
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index 1ae96e1a..68edd70e 100644
--- a/Process.c
+++ b/Process.c
@@ -311,7 +311,7 @@ static void Process_printTime(RichString* str, unsigned long long t) {
double jiffytime = 1.0 / jiffy;
double realTime = t * jiffytime;
- int iRealTime = (int) realTime;
+ unsigned long long iRealTime = (unsigned long long) realTime;
unsigned long long hours = iRealTime / 3600;
int minutes = (iRealTime / 60) % 60;

© 2014-2024 Faster IT GmbH | imprint | privacy policy