X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmrtg.pl;h=0d027b9a39f7f66b97b9bbe796a3abd5cf1cbf2e;hb=9549aeeb927ca0deb3cac4d06241f4dc4a054bb1;hp=b2f45af4be0c85631d3ce999e881486478d8df95;hpb=3c6b5ea97e035155d995e1c1f203e975ae8a1e22;p=spider.git diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index b2f45af4..0d027b9a 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)], 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)], 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; @@ -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);