diff -r d3593869d624 -r 0cef3540b69f longqueries.py --- a/longqueries.py Thu May 31 11:28:41 2012 +0200 +++ b/longqueries.py Mon Jul 09 10:29:47 2012 +0200 @@ -12,7 +12,7 @@ def main(self): stats = pgstats.PgStats(self.pgm.get_conn('target')) - for ln in stats.list_long_queries('0m'): + for ln in stats.list_long_queries('1m'): print(highlight(1), 'backend PID: ', ln['procpid'], ', query_start: ', ln['query_start'].strftime('%F %T'), highlight(0), sep='') print(ln['query']) print()