X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmrtg.pl;h=5473a81f43e997813526d250b67f1ad2b0af9686;hb=7d604d6c1d81a494a811afb3f93f8dc02eb59e2d;hp=2542edf5a3f0114c8977e09229222d97e4723416;hpb=3ce9a942c76920cb3cf556b2c8a556ef0cc448c7;p=spider.git
diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl
index 2542edf5..5473a81f 100644
--- a/cmd/mrtg.pl
+++ b/cmd/mrtg.pl
@@ -25,7 +25,7 @@
#
# Copyright (c) 2002 Dirk Koopman G1TLH
#
-# $Id$
+#
#
my ($self, $line) = @_;
@@ -109,7 +109,7 @@ if ($want{totalusers} || $want{all}) {
# do the total spots
if ($want{totalspots} || $want{all}) {
- $mc->cfgprint('totalspots', [qw(unknaszero gauge noi)], 1000, 'Total Spots',
+ $mc->cfgprint('totalspots', [qw(unknaszero absolute noi perminute)], 1000, 'Total Spots',
'Spots / min', 'Spots', 'Spots') unless $want{dataonly};
$mc->data('totalspots', $Spot::totalspots, $Spot::totalspots, 'Total Spots') unless $want{cfgonly};
$Spot::totalspots = 0;
@@ -117,7 +117,7 @@ if ($want{totalspots} || $want{all}) {
# do the HF and VHF spots
if ($want{hfvhf} || $want{all}) {
- $mc->cfgprint('hfspots', [qw(unknaszero gauge)], 1000, 'HF and VHF+ Spots',
+ $mc->cfgprint('hfspots', [qw(unknaszero absolute perminute)], 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};
$Spot::hfspots = $Spot::vhfspots = 0;
@@ -126,7 +126,7 @@ if ($want{hfvhf} || $want{all}) {
# wwv stuff
if ($want{wwv} || $want{all}) {
$mc->cfgprint('wwvsfi', [qw(gauge)], 1000, 'WWV SFI and R', 'SFI / R', 'SFI', 'R') unless $want{dataonly};
- $mc->data('wwvsfi', ($Geomag::r || $WCY::r), ($Geomag::sfi || $WCY::sfi), 'WWV SFI and R') unless $want{cfgonly};
+ $mc->data('wwvsfi', ($Geomag::sfi || $WCY::sfi), ($Geomag::r || $WCY::r), 'WWV SFI and R') unless $want{cfgonly};
$mc->cfgprint('wwvka', [qw(gauge)], 1000, 'WWV A and K',
'A / K', 'A', 'K') unless $want{dataonly};
$mc->data('wwvka', $Geomag::a, $Geomag::k, 'WWV A and K') unless $want{cfgonly};
@@ -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);