Increase channel width in vps so regex doesn't fail.
authorFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 23 Apr 2008 20:47:55 +0000 (20:47 +0000)
committerFaiyaz Ahmed <faiyaza@cs.princeton.edu>
Wed, 23 Apr 2008 20:47:55 +0000 (20:47 +0000)
swapmon.py

index 7ca19bc..ced0cab 100755 (executable)
@@ -295,7 +295,7 @@ def slicestat(names = None):
     # Eat the header line. vps depends on the header to figure out
     # which column is the PID column, so we can't just tell ps not to
     # print it.
-    for line in bwlimit.run("/usr/sbin/vps -e -o " + ",".join(ps_fields))[1:]:
+    for line in bwlimit.run("/usr/sbin/vps -e -o " + ":16,".join(ps_fields))[1:]:
         # Chomp newline
         line = line.strip()