lib/pghero/database.rb in pghero-1.5.2 vs lib/pghero/database.rb in pghero-1.5.3
- old
+ new
@@ -49,9 +49,13 @@
def slow_query_calls
(config["slow_query_calls"] || PgHero.config["slow_query_calls"] || PgHero.slow_query_calls).to_i
end
+ def long_running_query_sec
+ (config["long_running_query_sec"] || PgHero.config["long_running_query_sec"] || PgHero.long_running_query_sec).to_i
+ end
+
private
def connection_model
@connection_model ||= begin
url = config["url"]