From 48dd5976e1c25ddfe53e35a40260c2514eef6b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 25 Mar 2025 11:00:06 +0800 Subject: [PATCH] Battery (Linux): fix critical state detection --- src/detection/battery/battery_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/battery/battery_linux.c b/src/detection/battery/battery_linux.c index 940b9d719..8a9b2c641 100644 --- a/src/detection/battery/battery_linux.c +++ b/src/detection/battery/battery_linux.c @@ -108,7 +108,7 @@ static void parseBattery(int dfd, const char* id, FFBatteryOptions* options, FFl if (ffReadFileBufferRelative(dfd, "capacity_level", &tmpBuffer)) { - ffStrbufTrimRightSpace(&result->manufacturer); + ffStrbufTrimRightSpace(&tmpBuffer); if (ffStrbufEqualS(&tmpBuffer, "Critical")) { if (result->status.length)