From: Dirk Koopman Date: Thu, 17 Nov 2016 14:40:28 +0000 (+0000) Subject: tweek cmd/mrtg.pl X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=84a3c37a6da6adb749bb132ddd116a1c0e821ddb;p=spider.git tweek cmd/mrtg.pl --- diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 7fd950d8..9339f0fc 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -28,7 +28,6 @@ # # # -use Time::HiRes qw( clock_gettime CLOCK_PROCESS_CPUTIME_ID ); sub handle { @@ -81,9 +80,9 @@ sub do_it dbg "mrtg: proc: cluster=$main::clssecs children=$main::cldsecs clock=$secs" if isdbg('mrtg'); $mc->cfgprint('proc', [qw(unknaszero withzeroes perminute)], 600, - "Processor Usage", - 'CPU 10th Secs/Min', 'Cluster Secs', 'Child Secs') unless $want{dataonly}; - $mc->data('proc', $main::clssecs*10, $main::cldsecs*10, "Processor Usage") unless $want{cfgonly}; + "CPU Usage of node and its children 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