aboutsummaryrefslogtreecommitdiffstats
path: root/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stat.c b/stat.c
index 17f9af3..b44ee62 100644
--- a/stat.c
+++ b/stat.c
@@ -98,8 +98,7 @@ int stat_get_bar_ticks(int maxx, unsigned long long total,
void stat_draw_cpu_bar(WINDOW *w, int maxx, int y, int x, stat *s)
{
int ava_to_draw_x = maxx - STAT_INFO_WIDTH - BAR_LABEL_WIDTH;
- int total_hashes = ava_to_draw_x * (s->cpu_occ->smooth_cpu * 0.1);
-
+ int total_hashes = ava_to_draw_x * (s->cpu_occ->smooth_cpu * 0.01);
char hashes[2048] = {0};
if (total_hashes > ava_to_draw_x)