small edit

This commit is contained in:
notiant
2026-01-22 19:17:27 +01:00
committed by GitHub
parent d6ed1d186d
commit a03fd669f3
+1 -1
View File
@@ -107,7 +107,7 @@ Singleton {
var capacityMatch = line.match(/^\s*capacity:\s*(\d+(?:\.\d+)?)\s*%/i);
if (capacityMatch) {
root.healthPercent = Math.round(parseFloat(capacityMatch[1].replace(',', '.')));
root.healthPercent = Math.round(parseFloat(capacityMatch[1]));
root.healthAvailable = true;
Logger.d("Battery", "Health retrieved from CLI:", root.healthPercent + "%");
}