From a40d1c954b36941737a35bf4b9dc424bfda04d12 Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Tue, 25 Jan 2022 16:33:23 +0100 Subject: [PATCH] Fix data type mismatch --- metric-collector.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metric-collector.go b/metric-collector.go index a205a4f..b95b38f 100644 --- a/metric-collector.go +++ b/metric-collector.go @@ -17,7 +17,6 @@ import ( "sync" "time" - lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric" mr "github.com/ClusterCockpit/cc-metric-collector/internal/metricRouter" mct "github.com/ClusterCockpit/cc-metric-collector/internal/multiChanTicker" @@ -278,7 +277,7 @@ func mainFunc() int { // Wait until one tick has passed. This is a workaround if rcfg.CliArgs["once"] == "true" { - var x int = (1.8 * float64(rcfg.ConfigFile.Interval)) + x := 1.8 * float64(rcfg.ConfigFile.Interval) time.Sleep(time.Duration(int(x)) * time.Second) shutdown(&rcfg) }