Skip to content

Commit

Permalink
Use local var [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 3, 2021
1 parent f7184ec commit 048bb39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/pg_hero/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def index
@inactive_replication_slots = @database.replication_slots.select { |r| !r[:active] }
end

@walsender_queries, @long_running_queries = @database.long_running_queries.partition { |q| q[:backend_type] == "walsender" }
@autovacuum_queries, @long_running_queries = @long_running_queries.partition { |q| q[:query].starts_with?("autovacuum:") }
@walsender_queries, long_running_queries = @database.long_running_queries.partition { |q| q[:backend_type] == "walsender" }
@autovacuum_queries, @long_running_queries = long_running_queries.partition { |q| q[:query].starts_with?("autovacuum:") }

connection_states = @database.connection_states
@total_connections = connection_states.values.sum
Expand Down

0 comments on commit 048bb39

Please sign in to comment.