make proc work in production
authorminima <minima>
Mon, 30 Sep 2002 02:30:39 +0000 (02:30 +0000)
committerminima <minima>
Mon, 30 Sep 2002 02:30:39 +0000 (02:30 +0000)
cmd/mrtg.pl

index 1cf1b6173e3d237c3751459025f5ba1f436579b1..6ee9d0b786dff32c596dc86e5a601bc899b86490 100644 (file)
@@ -61,6 +61,7 @@ if ($want{agw}) {
 }
 
 if (!$main::is_win && ($want{proc} || $want{all})) {
+       $ENV{COLUMNS} = 250;
        my $secs;
        my $f = new IO::File "ps aux |";
 #      dbg("$f");
@@ -69,7 +70,7 @@ if (!$main::is_win && ($want{proc} || $want{all})) {
                        chomp;
                        my $l = $_;
 #                      dbg($l);
-                       next unless $l =~ /cluster\.p/;
+                       next unless $l =~ m{/spider/perl/cluster\.pl$};
                        my @f = split /\s+/, $l;
 #                      dbg("$f[9]");
                        my ($m, $s) = split /:/, $f[9];