change back to guage (but divided by 5)
[spider.git] / cmd / mrtg.pl
index 93adf33233f69526bc9a8258c46b7b0b7f0f8952..2f6a578bb1703f9b45263ee168783f55f447f63b 100644 (file)
@@ -111,7 +111,7 @@ if ($want{totalusers} || $want{all}) {
 if ($want{totalspots} || $want{all}) {
        $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;
 }
 
@@ -119,7 +119,7 @@ if ($want{totalspots} || $want{all}) {
 if ($want{hfvhf} || $want{all}) {
        $mc->cfgprint('hfspots', [qw(unknaszero gauge)], 1000, '<font color=#00cc00>HF</font> and <font color=#0000ff>VHF+</font> 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;
 }