Skip to content

Commit 56b5f4b

Browse files
committed
empty observed at
1 parent c7c529d commit 56b5f4b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cmd/lk/agent.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,11 @@ func getAgentStatus(ctx context.Context, cmd *cli.Command) error {
931931
replicas := "-"
932932
agentName := "---"
933933
deployment := "---"
934+
lastScrapedAt := "---"
935+
if regionalAgent.LastScrapedAt != nil {
936+
lastScrapedAt = formatTime(regionalAgent.LastScrapedAt.AsTime())
937+
}
934938

935-
lastScrapedAt := formatTime(regionalAgent.LastScrapedAt.AsTime())
936939
if regionalAgent.LastScrapedAt != nil {
937940
// deployment, cpu, mem, replicas, name
938941
curCPU, err = agentfs.ParseCpu(regionalAgent.CurCpu)

0 commit comments

Comments
 (0)