Skip to content

Commit 1f55c43

Browse files
authored
Merge pull request #14 from z-matth/patch-1
connection db not set properly
2 parents f4179d4 + a30123c commit 1f55c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/metric-postgres-dbsize.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def run
8181
password: config[:password],
8282
connect_timeout: config[:timeout])
8383
request = [
84-
"select pg_database_size('#{config[:db]}')"
84+
"select pg_database_size('#{config[:database]}')"
8585
]
8686

8787
con.exec(request.join(' ')) do |result|

0 commit comments

Comments
 (0)