lib/pghero/methods/kill.rb in pghero-1.4.2 vs lib/pghero/methods/kill.rb in pghero-1.5.0

- old
+ new

@@ -1,9 +1,9 @@ module PgHero module Methods module Kill def kill(pid) - truthy? execute("SELECT pg_terminate_backend(#{pid.to_i})").first["pg_terminate_backend"] + PgHero.truthy? execute("SELECT pg_terminate_backend(#{pid.to_i})").first["pg_terminate_backend"] end def kill_long_running_queries long_running_queries.each { |query| kill(query["pid"]) } true