mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-20 05:56:16 +00:00
Fix lint and fmt errors.
This commit is contained in:
parent
d5caaf5a4d
commit
2db74865b1
@ -133,10 +133,8 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
|
|||||||
val *= math.Pow(2, 15)
|
val *= math.Pow(2, 15)
|
||||||
case "16MB":
|
case "16MB":
|
||||||
val *= math.Pow(2, 24)
|
val *= math.Pow(2, 24)
|
||||||
}
|
|
||||||
case "32MB":
|
case "32MB":
|
||||||
val *= math.Pow(2, 25)
|
val *= math.Pow(2, 25)
|
||||||
}
|
|
||||||
case "64MB":
|
case "64MB":
|
||||||
val *= math.Pow(2, 26)
|
val *= math.Pow(2, 26)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user