mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-15 01:16:35 +00:00
hyperv: Refactor collector, added DataStore, Virtual SMB and Dynamic Memory Balancer metrics (click PR number for more information) (#1712)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -22,6 +22,10 @@ func ToPTR[t any](v t) *t {
|
||||
return &v
|
||||
}
|
||||
|
||||
func PercentageToRatio(percentage float64) float64 {
|
||||
return percentage / 100
|
||||
}
|
||||
|
||||
// Must panics if the error is not nil.
|
||||
//
|
||||
//nolint:ireturn
|
||||
|
||||
Reference in New Issue
Block a user