X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fcluster.pl;h=7ebfb946f5baa0912831a98e98da2f8be8c8db65;hb=8fa1ac1083c4a4d1b2916933ca49d00d2fad2d8b;hp=066ef7bf4c8424b1d17ad40fef1e372badf5dbe5;hpb=6624dcdf07d628e8d6a16fc6549edf40be25b7b2;p=spider.git diff --git a/cmd/show/cluster.pl b/cmd/show/cluster.pl index 066ef7bf..7ebfb946 100644 --- a/cmd/show/cluster.pl +++ b/cmd/show/cluster.pl @@ -1,4 +1,12 @@ # # show some statistics # -return (1, Route::cluster() ); + +my $self = shift; + +my ($nodes, $tot, $users, $maxlocalusers, $maxusers, $uptime, $localnodes) = Route::cluster(); + +$localnodes = $main::routeroot->nodes; +$users = $main::routeroot->users; + +return (1, $self->msg('cluster', $localnodes, $nodes, $users, $tot, $maxlocalusers, $maxusers, $uptime));