#
#
#
-use Time::HiRes qw( clock_gettime CLOCK_PROCESS_CPUTIME_ID );
sub handle
{
}
if (!$main::is_win && ($want{proc} || $want{all})) {
- $ENV{COLUMNS} = 250;
- my $secs;
+ my $secs = $main::clssecs + $main::cldsecs;
- $secs = clock_gettime(CLOCK_PROCESS_CPUTIME_ID);
+ dbg "mrtg: proc: cluster=$main::clssecs children=$main::cldsecs clock=$secs" if isdbg('mrtg');
- $mc->cfgprint('proc', [qw(noi unknaszero withzeroes perminute)], 5*60,
- "Processor Usage",
- 'Proc Secs/Min', 'Proc Secs', 'Proc Secs') unless $want{dataonly};
- $mc->data('proc', $secs, $secs, "Processor Usage") unless $want{cfgonly};
+ $mc->cfgprint('proc', [qw(unknaszero withzeroes perminute)], 600,
+ "CPU Usage of <font color=#00cc00>node</font> and its <font color=#0000ff>children</font> in 10th of secs",
+ '10th Secs/min', 'Cluster Secs*10', 'Child Secs*10') unless $want{dataonly};
+ $mc->data('proc', int($main::clssecs*10+0.5), int($main::cldsecs*10+0.5), "Processor Usage") unless $want{cfgonly};
}
# do the users and nodes