From: Faiyaz Ahmed Date: Wed, 23 Apr 2008 20:47:55 +0000 (+0000) Subject: Increase channel width in vps so regex doesn't fail. X-Git-Tag: Mom-2.3-1~10 X-Git-Url: http://git.onelab.eu/?p=mom.git;a=commitdiff_plain;h=c57eddb90d9b778ccac47cef5c272ffd4b0fa1d2;hp=089e9d17875602b741437b6ba1e53deb2f8682f7 Increase channel width in vps so regex doesn't fail. --- diff --git a/swapmon.py b/swapmon.py index 7ca19bc..ced0cab 100755 --- a/swapmon.py +++ b/swapmon.py @@ -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()