X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fmrtg.pl;h=4f0214e9110e91050d70fa3bf2b5146f77398f84;hb=c32170b5b05416143021fb165a27072ce861350b;hp=5473a81f43e997813526d250b67f1ad2b0af9686;hpb=7d604d6c1d81a494a811afb3f93f8dc02eb59e2d;p=spider.git diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 5473a81f..4f0214e9 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -13,6 +13,7 @@ # hfvhf - all spots split into HF and VHF # wwv - two graphs of WWV, one SFI and R other A and K # wcy - WCY A and K +# pc92 - PC92 C and K, PC92 A and D # all - all of the above # # b) actions @@ -109,17 +110,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; } @@ -139,6 +140,22 @@ if ($want{wcy} || $want{all}) { $mc->data('wcyka', $WCY::a, $WCY::k, 'WCY A and K') unless $want{cfgonly}; } +if ($want{pc92} || $want{all}) { + + $mc->cfgprint('pc92ck', [], 1024000, + "PC92 C and K records into $main::mycall", + 'Bytes / Sec', 'C', 'K') unless $want{dataonly}; + $mc->data('pc92ck', $DXProt::pc92Cin, $DXProt::pc92Kin, "PC92 C and K into $main::mycall") unless $want{cfgonly}; +# $DXProt::pc92C = $DXProt::pc92K = 0; + + $mc->cfgprint('pc92ad', [], 1024000, + "PC92 A and D records into $main::mycall", + 'Bytes / Sec', 'A', 'D') unless $want{dataonly}; + $mc->data('pc92ad', $DXProt::pc92Ain, $DXProt::pc92Din, "PC92 A and D into $main::mycall") unless $want{cfgonly}; +# $DXProt::pc92A = $DXProt::pc92D = 0; + +} + # # do the mrtg thing #