projects
/
PHP-P10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
db1190e
)
fixed small transfer bug in Stats.class.php
author
pk910
<philipp@zoelle1.de>
Thu, 28 Jul 2011 01:48:00 +0000
(
03:48
+0200)
committer
pk910
<philipp@zoelle1.de>
Thu, 28 Jul 2011 01:48:00 +0000
(
03:48
+0200)
Bots/Stats.class.php
patch
|
blob
|
history
diff --git
a/Bots/Stats.class.php
b/Bots/Stats.class.php
index 66704850b09ea66aa3b88092638f43fbeb51dc25..7c83105e82209e4f776314a034c136caa74d84d0 100644
(file)
--- a/
Bots/Stats.class.php
+++ b/
Bots/Stats.class.php
@@
-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']);
$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)) {
$count = $server->getUserCount();
$fname="db/".$server->getName().".rrd";
if(!file_exists($fname)) {