From 27ead6d3785e56550d7298936ae8dda39eedb3b5 Mon Sep 17 00:00:00 2001 From: Maxime Leroy <19607336+maxime1907@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:47:19 +0200 Subject: [PATCH] fix(cache): delete metrics before updating cache (#9) --- pkg/network/serve.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/network/serve.go b/pkg/network/serve.go index c2fe954..5036110 100644 --- a/pkg/network/serve.go +++ b/pkg/network/serve.go @@ -127,6 +127,7 @@ func setupCacheUpdater(ovhClient *ovh.Client) { defer ticker.Stop() for { + cloudProjectInstanceBilling.Reset() updateCloudProviderInstanceBilling(ovhClient) <-ticker.C