Dropping 0.0 value from float declaration

Signed-off-by: Rahman Mousavian <rahman.mousavian@oracle.com>
This commit is contained in:
Rahman Mousavian
2022-01-28 13:18:15 +11:00
parent 1aa00ebca8
commit 5dc10096f9

View File

@@ -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