Skip to content

Commit

Permalink
Merge pull request #3803 from Navid200/Navid_2024_12_08
Browse files Browse the repository at this point in the history
xDrip Sync master battery level on the follower status page
  • Loading branch information
jamorham authored Dec 17, 2024
2 parents a2bbca9 + f822f13 commit eb6cd64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static List<StatusItem> megaStatus() {
for (Map.Entry entry : indexed.entrySet()) {
final RollCall rc = (RollCall) entry.getValue();
// TODO refactor with stringbuilder
lf.add(new StatusItem(rc.role + (desert_sync ? rc.getRemoteWifiIndicate(our_wifi_ssid) : "") + (engineering ? ("\n" + JoH.niceTimeSince(rc.last_seen) + " ago") : ""), rc.bestName() + (desert_sync ? rc.getRemoteIpStatus() : "") + (engineering && rc.batteryValid() ? ("\n" + rc.battery + "%") : "") + (engineering && rc.bridgeBatteryValid() ? (" " + rc.bridge_battery+"%") : "")));
lf.add(new StatusItem(rc.role + (desert_sync ? rc.getRemoteWifiIndicate(our_wifi_ssid) : "") + (engineering ? ("\n" + JoH.niceTimeSince(rc.last_seen) + " ago") : ""), rc.bestName() + (desert_sync ? rc.getRemoteIpStatus() : "") + (rc.batteryValid() ? ("\n" + rc.battery + "%") : "") + (engineering && rc.bridgeBatteryValid() ? (" " + rc.bridge_battery+"%") : "")));
}

Collections.sort(lf, new Comparator<StatusItem>() {
Expand Down

0 comments on commit eb6cd64

Please sign in to comment.