summaryrefslogtreecommitdiff
path: root/maintenance/getLagTimes.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/getLagTimes.php')
-rw-r--r--maintenance/getLagTimes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php
index f2c06f6a..5c55d52c 100644
--- a/maintenance/getLagTimes.php
+++ b/maintenance/getLagTimes.php
@@ -15,7 +15,8 @@ if( empty( $wgDBservers ) ) {
} else {
$ip = gethostbyname( $host );
}
- $stars = str_repeat( '*', intval( $lag ) );
+ $starLen = min( intval( $lag ), 40 );
+ $stars = str_repeat( '*', $starLen );
printf( "%10s %20s %3d %s\n", $ip, $host, $lag, $stars );
}
}