Show online in CLI & API when isOnline() reports so

This commit is contained in:
Juan Font authored and Kristoffer Dalby committed 2022-12-15 00:13:53 -08:00
1 parent 4532915be1
commit 000c02dad9
2 files changed
+2 -3

No files matched your search

+1 -3
View File
@@ -513,9 +513,7 @@ func nodesToPtables(
}
var online string
if lastSeen.After(
time.Now().Add(-5 * time.Minute),
) { // TODO: Find a better way to reliably show if online
if machine.Online {
online = pterm.LightGreen("online")
} else {
online = pterm.LightRed("offline")