longqueries.py
changeset 5 57cf8fdff5ed
parent 2 efee419b7a2d
child 7 685b20d2d3ab
--- a/longqueries.py	Wed Jul 20 10:51:18 2011 +0200
+++ b/longqueries.py	Wed Jul 20 10:54:07 2011 +0200
@@ -1,12 +1,12 @@
 #!/usr/bin/env python3.2
 
 from pgtools import pgstats
-from toolbase import ToolBase
+from toolbase import SimpleTool
 
 
-class LongQueriesTool(ToolBase):
+class LongQueriesTool(SimpleTool):
     def __init__(self):
-        ToolBase.__init__(self, name='longqueries', desc='Lis long queries.')
+        SimpleTool.__init__(self, name='longqueries', desc='List long queries.')
         self.init()
 
     def main(self):
@@ -15,6 +15,7 @@
         for ln in stats.list_long_queries():
             print(ln['query'])
             print('   ', 'query_start:', ln['query_start'].strftime('%F %T'))
+            print()
 
 
 tool = LongQueriesTool()