From 31923d6b09aa8da2bfbe795cba49ae07743a8617 Mon Sep 17 00:00:00 2001 From: rzrbld Date: Tue, 14 Apr 2020 23:53:56 +0300 Subject: [PATCH] fix fake description generator --- .gitignore | 2 ++ handlers/metrics.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0c48f29..89ff180 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ # Dependency directories (remove the comment below to include it) # vendor/ main +runc-vpn.sh +runc-nk.sh runc.sh rund.sh test.sh diff --git a/handlers/metrics.go b/handlers/metrics.go index c4f52ed..8571384 100644 --- a/handlers/metrics.go +++ b/handlers/metrics.go @@ -109,7 +109,7 @@ func buildMetrics() { } else { log.Print("WARNING: I try to heal this by populating NA") for k, _ := range uniqMetricNames { - uniqMetricDesc[k] = "NA" + uniqMetricDesc = append(uniqMetricDesc, "NA_"+strconv.Itoa(k)) } } }