X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=inline;f=cmd%2Fmrtg.pl;h=2f6a578bb1703f9b45263ee168783f55f447f63b;hb=79e5e96cbacbdc4433349e8d789be69ec95cdd94;hp=9e6112c64fb142c627d8bf3253dfa11b3e756104;hpb=c3505bcfc922cd712bad2c20b3479cf8d1dc54fe;p=spider.git
diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl
index 9e6112c6..2f6a578b 100644
--- a/cmd/mrtg.pl
+++ b/cmd/mrtg.pl
@@ -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, '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;
}
@@ -142,5 +142,11 @@ if ($want{wcy} || $want{all}) {
#
# do the mrtg thing
#
-my @out = $mc->run unless $want{nomrtg};
+
+my @out;
+{
+local %ENV;
+$ENV{LANG} = 'C';
+@out = $mc->run unless $want{nomrtg};
+}
return (1, @out);