mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-28 23:56:36 +00:00
Dropping 0.0 value from float declaration
Signed-off-by: Rahman Mousavian <rahman.mousavian@oracle.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
//go:build windows
|
||||||
// +build windows
|
// +build windows
|
||||||
|
|
||||||
package collector
|
package collector
|
||||||
@@ -152,7 +153,7 @@ func (c *ScheduledTaskCollector) collect(ch chan<- prometheus.Metric) (*promethe
|
|||||||
)
|
)
|
||||||
|
|
||||||
for _, state := range TASK_STATES {
|
for _, state := range TASK_STATES {
|
||||||
var stateValue float64 = 0.0
|
var stateValue float64
|
||||||
|
|
||||||
if strings.ToLower(task.State.String()) == state {
|
if strings.ToLower(task.State.String()) == state {
|
||||||
stateValue = 1.0
|
stateValue = 1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user