mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
small edit
This commit is contained in:
@@ -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 + "%");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user