vmware: refactor collector (#1727)

This commit is contained in:
Jan-Otto Kröpke
2024-11-12 23:16:22 +01:00
committed by GitHub
parent eeb7955f5e
commit b53f18bcc6
6 changed files with 228 additions and 209 deletions

View File

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