cmd/storagenode: CLI dashboard last contact renamed to status

Change-Id: I29bcd62d0d2970d6294dc642b442b60a3331bbd6
This commit is contained in:
Qweder93 2020-07-28 19:05:47 +03:00 committed by Nikolai Siedov
parent 88dcc93f3c
commit 6e90ca8b0e

View File

@ -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())