add * 60 factoring for proc
[spider.git] / cmd / mrtg.pl
index 6ee9d0b786dff32c596dc86e5a601bc899b86490..81190121374e5f4adefeb95a6f3b49ca7aa3a9e8 100644 (file)
@@ -70,7 +70,7 @@ if (!$main::is_win && ($want{proc} || $want{all})) {
                        chomp;
                        my $l = $_;
 #                      dbg($l);
-                       next unless $l =~ m{/spider/perl/cluster\.pl$};
+                       next unless $l =~ m{cluster\.pl$};
                        my @f = split /\s+/, $l;
 #                      dbg("$f[9]");
                        my ($m, $s) = split /:/, $f[9];
@@ -80,7 +80,7 @@ if (!$main::is_win && ($want{proc} || $want{all})) {
                $f->close;
        }
        if ($secs) {
-               $mc->cfgprint('proc', [qw(noi)], 64000, 
+               $mc->cfgprint('proc', [qw(noi perminute)], 64000, 
                                          "Processor Usage",
                                          'Secs', 'Secs', 'Secs') unless $want{dataonly};
                $mc->data('proc', $secs, $secs, "Processor Usage") unless $want{cfgonly};