diff options
| author | verdant <im@verdant.ee> | 2026-07-22 22:51:39 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-07-22 22:51:39 +0800 |
| commit | b1a14921a977b9d88847d47eb07355e40f8f9a91 (patch) | |
| tree | 09fd1cbd7e586606f97173098ee0ecb716d1af2c | |
| parent | c8ff088ee05c4fb59c5b1dede781a14b821f510e (diff) | |
| download | sf-b1a14921a977b9d88847d47eb07355e40f8f9a91.tar.gz sf-b1a14921a977b9d88847d47eb07355e40f8f9a91.zip | |
Tweak alpha from 0.1 to 0.005
| -rw-r--r-- | stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
