Skip to content

Commit

Permalink
Fix lint and fmt errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Apr 15, 2018
1 parent d5caaf5 commit 2db7486
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cmd/postgres_exporter/pg_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ func (s *pgSetting) normaliseUnit() (val float64, unit string, err error) {
val *= math.Pow(2, 15)
case "16MB":
val *= math.Pow(2, 24)
}
case "32MB":
val *= math.Pow(2, 25)
}
case "64MB":
val *= math.Pow(2, 26)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/postgres_exporter/pg_setting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var fixtures = []fixture{
d: "Desc{fqName: \"pg_settings_16_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
v: 5.0331648e+07,
},
{
{
p: pgSetting{
name: "32_mb_real_fixture_metric",
setting: "3.0",
Expand All @@ -108,7 +108,7 @@ var fixtures = []fixture{
d: "Desc{fqName: \"pg_settings_32_mb_real_fixture_metric_bytes\", help: \"Foo foo foo [Units converted to bytes.]\", constLabels: {}, variableLabels: []}",
v: 1.00663296e+08,
},
{
{
p: pgSetting{
name: "64_mb_real_fixture_metric",
setting: "3.0",
Expand Down

0 comments on commit 2db7486

Please sign in to comment.