From 02ccfe8604977f3988852abd3d87eac98b0c30bd Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 14 Dec 2023 17:21:42 +0100 Subject: [PATCH] fix: wording when metrics are not yet available --- internal/cmd/loadbalancer/metrics.go | 2 +- internal/cmd/server/metrics.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/loadbalancer/metrics.go b/internal/cmd/loadbalancer/metrics.go index 0bd1fb8f..99c7f0fc 100644 --- a/internal/cmd/loadbalancer/metrics.go +++ b/internal/cmd/loadbalancer/metrics.go @@ -101,7 +101,7 @@ var MetricsCmd = base.Cmd{ sort.Strings(keys) for _, k := range keys { if len(m.TimeSeries[k]) == 0 { - cmd.Printf("Currently there are now metrics available. Please try it again later.") + cmd.Printf("Currently there are no metrics available. Please try it again later.") return nil } cmd.Printf("Load Balancer: %s \t Metric: %s \t Start: %s \t End: %s\n", LoadBalancer.Name, k, m.Start.String(), m.End.String()) diff --git a/internal/cmd/server/metrics.go b/internal/cmd/server/metrics.go index a849d821..4e9c52e7 100644 --- a/internal/cmd/server/metrics.go +++ b/internal/cmd/server/metrics.go @@ -100,7 +100,7 @@ var MetricsCmd = base.Cmd{ sort.Strings(keys) for _, k := range keys { if len(m.TimeSeries[k]) == 0 { - cmd.Printf("Currently there are now metrics available. Please try it again later.") + cmd.Printf("Currently there are no metrics available. Please try it again later.") return nil } cmd.Printf("Server: %s \t Metric: %s \t Start: %s \t End: %s\n", server.Name, k, m.Start.String(), m.End.String())