fixed small transfer bug in Stats.class.php
authorpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 01:48:00 +0000 (03:48 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 01:48:00 +0000 (03:48 +0200)
Bots/Stats.class.php

index 66704850b09ea66aa3b88092638f43fbeb51dc25..7c83105e82209e4f776314a034c136caa74d84d0 100644 (file)
@@ -103,7 +103,7 @@ class {$_NAME} extends Bot {
                $servers = P10_Server::getServerCount();
                rrd_update("db/network.rrd", time().":".$stats['total'].":".$channels.":".$stats['opers'].":".$servers);
                rrd_update("db/network-away.rrd", time().":".$stats['away'].":".$stats['here']);
-               foreach(uplink::$uplink->servers as $snum => $server) {
+               foreach(P10_Server::getServers() as $snum => $server) {
                        $count = $server->getUserCount();
                        $fname="db/".$server->getName().".rrd";
                        if(!file_exists($fname)) {