]> git.parisson.com Git - telecaster-cgi.git/commitdiff
fix pids for squeeze
authoryomguy <yomguy@parisson.com>
Mon, 4 Jul 2011 12:59:31 +0000 (14:59 +0200)
committeryomguy <yomguy@parisson.com>
Mon, 4 Jul 2011 12:59:31 +0000 (14:59 +0200)
telecaster.py
tools/tools.py

index 797364198df0a5c0718fd903b2be1e9011cd5d0b..5c3921722c7099e02a1afc2cacecf93b58c07c0a 100755 (executable)
@@ -35,7 +35,7 @@
 # Author: Guillaume Pellerin <yomguy@parisson.com>
 """
 
-version = '0.5.2'
+version = '0.5.3'
 
 
 import os
index 80d7371c385c2c89e74ac3462c66d81f6a98c8c8..8f99eed08c2268871367d10ab67d67ffbe3b54cd 100644 (file)
@@ -108,7 +108,7 @@ def get_pid(proc,uid):
             pid = proc.split(' ')[0]
             command = ' '.join(proc.split(' ')[1:])[:-1]
             pids.append(pid)
-    if len(pids) < 1:
+    if len(pids) <= 1:
         return [] 
     else:
         return [pids[0]]