Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
talal committed Jan 8, 2020
1 parent 59866d9 commit 9c69349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions collectors/recon.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ func reconDiskUsageTask(taskName, pathToReconExecutable string, ch chan<- promet
)
}

usedPercent := float64(totalUsed) / float64(totalSize)
usedRatio := float64(totalUsed) / float64(totalSize)
if totalSize == 0 {
usedPercent = 1.0
usedRatio = 1.0
}
ch <- prometheus.MustNewConstMetric(
clusterStorageUsedPercentDesc,
prometheus.GaugeValue, usedPercent,
prometheus.GaugeValue, usedRatio,
hostname,
)
ch <- prometheus.MustNewConstMetric(
Expand Down

0 comments on commit 9c69349

Please sign in to comment.