From 8cccf23a3217ed05062bebd15182ea999d1be595 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Mon, 1 Sep 2025 20:35:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20cpu=20=E5=8D=A0=E7=94=A8?= =?UTF-8?q?=E7=8E=87=E5=A7=8B=E7=BB=88=E4=B8=BA=200=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status.c b/src/status.c index 14629c6..8b08f2f 100644 --- a/src/status.c +++ b/src/status.c @@ -102,7 +102,7 @@ static bool get_cpu_usage(double *usage, GError *error) { if (!inited) { prev_cpu_stat = stat; - inited = false; + inited = true; } double percent = calc_cpu_usage(stat, prev_cpu_stat);