aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-22 22:50:14 +0800
committerverdant <im@verdant.ee>2026-07-22 22:50:14 +0800
commitc8ff088ee05c4fb59c5b1dede781a14b821f510e (patch)
treeda234058cad83c723003cb0c7f042784b30d31a6
parent85be5dc9852c403ec4f3e7e6f81023cbbe51f755 (diff)
downloadsf-c8ff088ee05c4fb59c5b1dede781a14b821f510e.tar.gz
sf-c8ff088ee05c4fb59c5b1dede781a14b821f510e.zip
Fix CPU utilization display
-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)