diff options
| author | verdant <im@verdant.ee> | 2026-07-22 22:50:14 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-22 22:50:14 +0800 |
| commit | c8ff088ee05c4fb59c5b1dede781a14b821f510e (patch) | |
| tree | da234058cad83c723003cb0c7f042784b30d31a6 | |
| parent | 85be5dc9852c403ec4f3e7e6f81023cbbe51f755 (diff) | |
| download | sf-c8ff088ee05c4fb59c5b1dede781a14b821f510e.tar.gz sf-c8ff088ee05c4fb59c5b1dede781a14b821f510e.zip | |
Fix CPU utilization display
| -rw-r--r-- | stat.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |
