mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
vmware: refactor collector (#1727)
This commit is contained in:
@@ -6,6 +6,10 @@ func MilliSecToSec(t float64) float64 {
|
||||
return t / 1000
|
||||
}
|
||||
|
||||
func MBToBytes(mb float64) float64 {
|
||||
return mb * 1024 * 1024
|
||||
}
|
||||
|
||||
func BoolToFloat(b bool) float64 {
|
||||
if b {
|
||||
return 1.0
|
||||
|
||||
Reference in New Issue
Block a user