X-Git-Url: http://git.onelab.eu/?p=mom.git;a=blobdiff_plain;f=swapmon.py;fp=swapmon.py;h=ac133fba955f3dc52e1e38a3e2b2039d4916d511;hp=1076261edfda228c572736a36bcf707f1a2e3688;hb=84d010124e01c6d71f2778daabb3e5adf66437c9;hpb=2255be4d8e804746aad4994fe48a297e21e01e04 diff --git a/swapmon.py b/swapmon.py index 1076261..ac133fb 100755 --- a/swapmon.py +++ b/swapmon.py @@ -171,7 +171,7 @@ def slicestat(names = None): # Represent process as a dict of fields values = line.split(None, len(fields) - 1) if len(values) != len(fields): - print "slicestat: failed to parse line:", line + print "slicestat: failed to parse line: " + line continue proc = dict(zip(fields, values)) @@ -185,12 +185,12 @@ def slicestat(names = None): except ValueError: pass - # vps sometimes prints ERR or the name of the slice + # vps sometimes prints ERR or the name of the slice # instead of a context ID if it # cannot identify the context of an orphaned (usually dying) # process. Skip these processes. if (type(proc['xid']) != int) or (type(proc['vsize']) !=int): - print "slicestat: failed to parse line:", line + print "slicestat: failed to parse line: " + line continue # Assign (pl_)sshd processes to slice instead of root