summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/lpwatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/scripts/lpwatch.py')
-rwxr-xr-xDemo/scripts/lpwatch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/scripts/lpwatch.py b/Demo/scripts/lpwatch.py
index 8887dee..c3dcb34 100755
--- a/Demo/scripts/lpwatch.py
+++ b/Demo/scripts/lpwatch.py
@@ -74,7 +74,7 @@ def makestatus(name, thisuser):
ubytes = ubytes + bytes
users[user] = ujobs, ubytes
else:
- if fields and fields[0] <> 'Rank':
+ if fields and fields[0] != 'Rank':
line = string.strip(line)
if line == 'no entries':
line = name + ': idle'
@@ -84,7 +84,7 @@ def makestatus(name, thisuser):
#
if totaljobs:
line = '%d K' % ((totalbytes+1023)/1024)
- if totaljobs <> len(users):
+ if totaljobs != len(users):
line = line + ' (%d jobs)' % totaljobs
if len(users) == 1:
line = line + ' for %s' % (users.keys()[0],)