projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b994a1
)
no behavior change, just change the % calc math so the type conversion and operation...
author
David Carter
<boojit@pundo.com>
Sat, 12 Nov 2005 16:13:11 +0000
(16:13 +0000)
committer
David Carter
<boojit@pundo.com>
Sat, 12 Nov 2005 16:13:11 +0000
(16:13 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@407
7f574dfc
-610e-0410-a909-
a81674777703
src/top.c
patch
|
blob
|
history
diff --git
a/src/top.c
b/src/top.c
index
26350eb
..
e35b1ad
100644
(file)
--- a/
src/top.c
+++ b/
src/top.c
@@
-387,7
+387,7
@@
inline static void calc_cpu_each(unsigned long total)
(100.0 * (float) (p->user_time + p->kernel_time) /
total) : 0; */
p->amount =
- (100.0 * (p->user_time + p->kernel_time) / total);
+ 100.0 * ((float)(p->user_time + p->kernel_time) / (float)total);
/* if (p->amount > 100)
p->amount = 0;*/