aboutsummaryrefslogtreecommitdiffstats
path: root/stat.c
diff options
context:
space:
mode:
authorverdant <im@verdant.ee>2026-07-22 22:51:39 +0800
committerverdant <im@verdant.ee>2026-07-22 22:51:39 +0800
commitb1a14921a977b9d88847d47eb07355e40f8f9a91 (patch)
tree09fd1cbd7e586606f97173098ee0ecb716d1af2c /stat.c
parentc8ff088ee05c4fb59c5b1dede781a14b821f510e (diff)
downloadsf-b1a14921a977b9d88847d47eb07355e40f8f9a91.tar.gz
sf-b1a14921a977b9d88847d47eb07355e40f8f9a91.zip
Tweak alpha from 0.1 to 0.005
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stat.c b/stat.c
index b44ee62..72033c3 100644
--- a/stat.c
+++ b/stat.c
@@ -231,7 +231,7 @@ void stat_get_cpuinfo(stat *s)
/* EMA - Exponential Moving Average */
/* DisplayCPU = alpha * raw_cpu + (1 - alpha) * pre_cpu */
- double alpha = 0.1;
+ double alpha = 0.005;
if (total_diff > 0) {
double raw_cpu = (double)(total_diff - idle_diff) /
(double)total_diff * 100.0;