From 3db187276c98e7a51faf95e584bfda423892ffdf Mon Sep 17 00:00:00 2001 From: supertick Date: Sat, 27 Apr 2024 08:47:45 -0700 Subject: [PATCH] fixed white space --- src/main/java/org/myrobotlab/service/Runtime.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/myrobotlab/service/Runtime.java b/src/main/java/org/myrobotlab/service/Runtime.java index 4b5f418a39..79439eea08 100644 --- a/src/main/java/org/myrobotlab/service/Runtime.java +++ b/src/main/java/org/myrobotlab/service/Runtime.java @@ -3687,10 +3687,10 @@ public static Double getBatteryLevel() { // TODO This is incorrect, will not work when unplugged // and acpitool output is different than expected, // at least on Ubuntu 22.04 - consider oshi library - if (FileIO.isExecutableAvailable("acpi")) { + if (FileIO.isExecutableAvailable("acpi")) { String ret = Runtime.execute("acpi"); int pos0 = ret.indexOf("%"); - + if (pos0 != -1) { int pos1 = ret.lastIndexOf(" ", pos0); // int pos1 = ret.indexOf("%", pos0);