From: minima Date: Sun, 29 Sep 2002 21:48:53 +0000 (+0000) Subject: add zero is allowed flag to users/nodes X-Git-Tag: PRE-1-52~175 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c88a557d27612adc84d786427b15c4f0fb1d6ee4;p=spider.git add zero is allowed flag to users/nodes --- diff --git a/cmd/mrtg.pl b/cmd/mrtg.pl index 6e279985..05d426e2 100644 --- a/cmd/mrtg.pl +++ b/cmd/mrtg.pl @@ -41,7 +41,7 @@ my $mc = new Mrtg or return (1, "cannot initialise Mrtg $!"); my $users = DXChannel::get_all_users(); my $nodes = DXChannel::get_all_nodes(); -$mc->cfgprint('users', [qw(gauge)], 500, +$mc->cfgprint('users', [qw(unknaszero gauge)], 500, "Users and Nodes on $main::mycall", 'Users / Nodes', 'Users', 'Nodes') unless $want{dataonly}; $mc->data('users', $users, $nodes, 'Users / Nodes') unless $want{cfgonly}; @@ -50,7 +50,7 @@ $mc->data('users', $users, $nodes, 'Users / Nodes') unless $want{cfgonly}; if ($want{totalusers} || $want{all}) { $nodes = Route::Node::count(); $users = Route::User::count(); - $mc->cfgprint('totalusers', [qw(gauge)], 10000, + $mc->cfgprint('totalusers', [qw(unknaszero gauge)], 10000, 'Total Users and Nodes in the Visible Cluster Network', 'Users / Nodes', 'Users', 'Nodes') unless $want{dataonly}; $mc->data('totalusers', $users, $nodes, 'Total Users and Nodes in the Visible Cluster Network') unless $want{cfgonly};