Skip to content
This repository was archived by the owner on Sep 5, 2019. It is now read-only.

Commit 5452a3a

Browse files
gsstarkwrouesnel
authored andcommitted
Postgres commits 6e7baa3227 and b06d8e58b5 added a new unit suffix "B"
for memory parameters for bytes.
1 parent 42f9de4 commit 5452a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/pg_setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
9696
return
9797
case "ms", "s", "min", "h", "d":
9898
unit = "seconds"
99-
case "kB", "MB", "GB", "TB", "8kB", "16kB", "32kB", "16MB", "32MB", "64MB":
99+
case "B", "kB", "MB", "GB", "TB", "8kB", "16kB", "32kB", "16MB", "32MB", "64MB":
100100
unit = "bytes"
101101
default:
102102
err = fmt.Errorf("Unknown unit for runtime variable: %q", s.unit)

0 commit comments

Comments
 (0)