From: yomguy Date: Mon, 4 Jul 2011 12:59:31 +0000 (+0200) Subject: fix pids for squeeze X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9a55c9dce8c27b213fc9fe95c14321cd6422cfe9;p=telecaster-cgi.git fix pids for squeeze --- diff --git a/telecaster.py b/telecaster.py index 7973641..5c39217 100755 --- a/telecaster.py +++ b/telecaster.py @@ -35,7 +35,7 @@ # Author: Guillaume Pellerin """ -version = '0.5.2' +version = '0.5.3' import os diff --git a/tools/tools.py b/tools/tools.py index 80d7371..8f99eed 100644 --- a/tools/tools.py +++ b/tools/tools.py @@ -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]]