X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmrtg.pl;h=2f6a578bb1703f9b45263ee168783f55f447f63b;hb=1aac4bfce7659fc802741267238f7cc008a97ca7;hp=5473a81f43e997813526d250b67f1ad2b0af9686;hpb=7d604d6c1d81a494a811afb3f93f8dc02eb59e2d;p=spider.git diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 5473a81f..2f6a578b 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -109,17 +109,17 @@ if ($want{totalusers} || $want{all}) { # do the total spots if ($want{totalspots} || $want{all}) { - $mc->cfgprint('totalspots', [qw(unknaszero absolute noi perminute)], 1000, 'Total Spots', + $mc->cfgprint('totalspots', [qw(unknaszero gauge noi)], 1000, 'Total Spots', 'Spots / min', 'Spots', 'Spots') unless $want{dataonly}; - $mc->data('totalspots', $Spot::totalspots, $Spot::totalspots, 'Total Spots') unless $want{cfgonly}; + $mc->data('totalspots', int ($Spot::totalspots/5+0.5), int($Spot::totalspots/5+0.5), 'Total Spots') unless $want{cfgonly}; $Spot::totalspots = 0; } # do the HF and VHF spots if ($want{hfvhf} || $want{all}) { - $mc->cfgprint('hfspots', [qw(unknaszero absolute perminute)], 1000, 'HF and VHF+ Spots', + $mc->cfgprint('hfspots', [qw(unknaszero gauge)], 1000, 'HF and VHF+ Spots', 'Spots / min', 'HF', 'VHF') unless $want{dataonly}; - $mc->data('hfspots', $Spot::hfspots, $Spot::vhfspots, 'HF and VHF+ Spots') unless $want{cfgonly}; + $mc->data('hfspots', int($Spot::hfspots/5+0.5), int($Spot::vhfspots/5+0.5), 'HF and VHF+ Spots') unless $want{cfgonly}; $Spot::hfspots = $Spot::vhfspots = 0; }