From c8ff088ee05c4fb59c5b1dede781a14b821f510e Mon Sep 17 00:00:00 2001 From: verdant Date: Wed, 22 Jul 2026 22:50:14 +0800 Subject: Fix CPU utilization display --- stat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stat.c') 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) -- cgit v1.2.3