Battery (Linux): fix temperature detection

This commit is contained in:
Carter Li
2024-01-09 16:34:04 +08:00
parent bc52613410
commit 61af59fc00
+1 -1
View File
@@ -88,7 +88,7 @@ static void parseBattery(FFstrbuf* dir, const char* id, FFBatteryOptions* option
{
ffStrbufAppendS(dir, "/temp");
if (ffReadFileBuffer(dir->chars, &tmpBuffer))
options->temp = ffStrbufToDouble(&tmpBuffer) / 10;
result->temperature = ffStrbufToDouble(&tmpBuffer) / 10;
ffStrbufSubstrBefore(dir, dirLength);
}
}