-# do the users and nodes
-my $users = DXChannel::get_all_users();
-my $nodes = DXChannel::get_all_nodes();
-my $uptime = main::uptime();
-#dbg "$users $nodes $uptime\n";
-if (open M, ">$dir/users") {
- print M "$users\n$nodes\n$uptime\nUsers and Nodes\n";
- close M;
-}
-print MC <<"EOF";
-#
-# local users and nodes
-#
-Target[users]: `cat /spider/mrtg/users`
-MaxBytes1[users]: 500
-MaxBytes2[users]: 200
-Title[users]: Users and Nodes for $main::mycall
-Options[users]: withzeroes, gauge, growright, nopercent, integer
-YLegend[users]: Users \& Nodes
-YTicsFactor[users]: 1
-ShortLegend[users]: \
-Legend1[users]:Maximum No of Users
-Legend2[users]:Maximum No of Nodes
-LegendI[users]:Users
-LegendO[users]:Nodes
-PageTop[users]: <H1>Users and Nodes on GB7DJK</H1>
- <TABLE>
- <TR><TD>System:</TD> <TD>$main::mycall</TD></TR>
- <TR><TD>Maintainer:</TD> <TD>$main::myemail</TD></TR>
- <TR><TD>Description:</TD><TD>Users \& Nodes </TD></TR>
- </TABLE>
-EOF
-
-# do the total users and nodes
-if ($want{totalusers} || $want{all}) {
- $nodes = Route::Node::count();
- $users = Route::User::count();
- #dbg "$users $nodes $uptime\n";
- if (open M, ">$dir/totalusers") {
- print M "$users\n$nodes\n$uptime\nTotal Users and Nodes\n";
- close M;
- }
- print MC <<"EOF";
-#
-# total users and nodes
-#
-Target[totalusers]: `cat /spider/mrtg/totalusers`
-MaxBytes1[totalusers]: 5000
-MaxBytes2[totalusers]: 5000
-Title[totalusers]: Total Users and Nodes for the Visible Cluster Network
-Options[totalusers]: withzeroes, gauge, growright, nopercent, integer
-YLegend[totalusers]: Users \& Nodes
-YTicsFactor[totalusers]: 1
-ShortLegend[totalusers]: \
-Legend1[totalusers]:Maximum No of Users
-Legend2[totalusers]:Maximum No of Nodes
-LegendI[totalusers]:Users
-LegendO[totalusers]:Nodes
-PageTop[totalusers]: <H1>Total Users and Nodes in the Visible Network</H1>
- <TABLE>
- <TR><TD>System:</TD> <TD>$main::mycall</TD></TR>
- <TR><TD>Maintainer:</TD> <TD>$main::myemail</TD></TR>
- <TR><TD>Description:</TD><TD>Total Users \& Nodes for the Visible Cluster Network </TD></TR>
- </TABLE>
-EOF
-}
+ $mc->cfgprint('pc92ck', [qw(integer)], 1024000,
+ "PC92 <font color=#00cc00>C</font> and <font color=#0000ff>K</font> 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::pc92Cin = $DXProt::pc92Kin = 0;