From c57eddb90d9b778ccac47cef5c272ffd4b0fa1d2 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Wed, 23 Apr 2008 20:47:55 +0000 Subject: [PATCH] Increase channel width in vps so regex doesn't fail. --- swapmon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.43.0