mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
don't downcast to int before determining number of hours
This commit is contained in:
parent
0d8f654343
commit
078b831696
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user