From 1aac4bfce7659fc802741267238f7cc008a97ca7 Mon Sep 17 00:00:00 2001 From: Dirk Koopman Date: Tue, 25 Sep 2007 21:06:37 +0100 Subject: [PATCH] change back to guage (but divided by 5) --- cmd/mrtg.pl | 8 ++++---- perl/Version.pm | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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; } diff --git a/perl/Version.pm b/perl/Version.pm index af82f887..bb95399f 100644 --- a/perl/Version.pm +++ b/perl/Version.pm @@ -11,6 +11,6 @@ use vars qw($version $subversion $build); $version = '1.54'; $subversion = '0'; -$build = '156'; +$build = '157'; 1; -- 2.34.1