diff options
Diffstat (limited to 'maintenance/lag.php')
-rw-r--r-- | maintenance/lag.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/lag.php b/maintenance/lag.php index 410bf756..52f8201a 100644 --- a/maintenance/lag.php +++ b/maintenance/lag.php @@ -39,7 +39,9 @@ class DatabaseLag extends Maintenance { if ( $this->hasOption( 'r' ) ) { $lb = wfGetLB(); echo 'time '; - for ( $i = 1; $i < $lb->getServerCount(); $i++ ) { + + $serverCount = $lb->getServerCount(); + for ( $i = 1; $i < $serverCount; $i++ ) { $hostname = $lb->getServerName( $i ); printf( "%-12s ", $hostname ); } |