Skip to content

Commit fd98556

Browse files
committed
Fix style issues
1 parent 45a02f1 commit fd98556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/metric-postgres-connections.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ def run
8383
request = [
8484
"select case when count(*) = 1 then 'waiting' else",
8585
"'case when wait_event_type is null then false else true end' end as wait_col",
86-
"from information_schema.columns",
86+
'from information_schema.columns',
8787
"where table_name = 'pg_stat_activity' and table_schema = 'pg_catalog'",
8888
"and column_name = 'waiting'"
8989
]
9090
wait_col = con.exec(request.join(' ')).first['wait_col']
91-
91+
9292
request = [
9393
"select count(*), #{wait_col} as waiting from pg_stat_activity",
9494
"where datname = '#{config[:database]}' group by #{wait_col}"

0 commit comments

Comments
 (0)