From 5dc10096f95fa2547c1d72fb9483fe29b83cd9ad Mon Sep 17 00:00:00 2001 From: Rahman Mousavian Date: Fri, 28 Jan 2022 13:18:15 +1100 Subject: [PATCH] Dropping 0.0 value from float declaration Signed-off-by: Rahman Mousavian --- collector/scheduled_task.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/collector/scheduled_task.go b/collector/scheduled_task.go index 4911da7a..dd34dcb3 100644 --- a/collector/scheduled_task.go +++ b/collector/scheduled_task.go @@ -1,3 +1,4 @@ +//go:build windows // +build windows package collector @@ -152,7 +153,7 @@ func (c *ScheduledTaskCollector) collect(ch chan<- prometheus.Metric) (*promethe ) for _, state := range TASK_STATES { - var stateValue float64 = 0.0 + var stateValue float64 if strings.ToLower(task.State.String()) == state { stateValue = 1.0