cmd/storagenode: CLI dashboard last contact renamed to status
Change-Id: I29bcd62d0d2970d6294dc642b442b60a3331bbd6
This commit is contained in:
parent
88dcc93f3c
commit
6e90ca8b0e
@ -94,9 +94,9 @@ func printDashboard(data *pb.DashboardResponse) error {
|
||||
fmt.Fprintf(w, "ID\t%s\n", color.YellowString(data.NodeId.String()))
|
||||
|
||||
if data.LastPinged.IsZero() || time.Since(data.LastPinged) >= contactWindow {
|
||||
fmt.Fprintf(w, "Last Contact\t%s\n", color.RedString("OFFLINE"))
|
||||
fmt.Fprintf(w, "Status\t%s\n", color.RedString("OFFLINE"))
|
||||
} else {
|
||||
fmt.Fprintf(w, "Last Contact\t%s\n", color.GreenString("ONLINE"))
|
||||
fmt.Fprintf(w, "Status\t%s\n", color.GreenString("ONLINE"))
|
||||
}
|
||||
|
||||
uptime, err := time.ParseDuration(data.GetUptime())
|
||||
|
Loading…
Reference in New Issue
Block a user