Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
078b8316
Commit
078b8316
authored
Jun 25, 2012
by
Hisham Muhammad
Browse files
don't downcast to int before determining number of hours
parent
0d8f6543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Process.c
View file @
078b8316
...
@@ -311,7 +311,7 @@ static void Process_printTime(RichString* str, unsigned long long t) {
...
@@ -311,7 +311,7 @@ static void Process_printTime(RichString* str, unsigned long long t) {
double
jiffytime
=
1
.
0
/
jiffy
;
double
jiffytime
=
1
.
0
/
jiffy
;
double
realTime
=
t
*
jiffytime
;
double
realTime
=
t
*
jiffytime
;
int
iRealTime
=
(
int
)
realTime
;
unsigned
long
long
iRealTime
=
(
unsigned
long
long
)
realTime
;
unsigned
long
long
hours
=
iRealTime
/
3600
;
unsigned
long
long
hours
=
iRealTime
/
3600
;
int
minutes
=
(
iRealTime
/
60
)
%
60
;
int
minutes
=
(
iRealTime
/
60
)
%
60
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment