Skip to content

Commit b74f531

Browse files
committed
-
1 parent f28f218 commit b74f531

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/postgres_exporter/pg_setting.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
119119
val *= 60 * 60 * 24
120120
case "kB":
121121
val *= math.Pow(2, 10)
122+
case "B":
123+
val *= math.Pow(2, 1)
122124
case "MB":
123125
val *= math.Pow(2, 20)
124126
case "GB":

0 commit comments

Comments
 (0)