Browse Source

Added limit parameter for logs

Marcin Kuźmiński 13 years ago
parent
commit
577bf053b4
1 changed files with 1 additions and 6 deletions
  1. 1 6
      supervisor/web.py

+ 1 - 6
supervisor/web.py

@@ -186,13 +186,8 @@ class TailView(MeldView):
         else:
             processname = form['processname']
             offset = 0
-
             limit = form.get('limit', '1024')
-            if limit.isdigit():
-                limit = min(-1024, int(limit)*-1)
-            else:
-                limit = -1024
-
+            limit = min(-1024, int(limit)*-1 if limit.isdigit() else -1024)
             if not processname:
                 tail = 'No process name found'
             else: