From: Brion Vibber Date: Tue, 5 Dec 2006 02:44:53 +0000 (+0000) Subject: add cute barchart X-Git-Tag: 1.31.0-rc.0~54985 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=9bbd3da81ee2c9bbef6015c88d094f88cf30422e;p=lhc%2Fweb%2Fwiklou.git add cute barchart --- diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php index 827bc49e1f..f2c06f6a7a 100644 --- a/maintenance/getLagTimes.php +++ b/maintenance/getLagTimes.php @@ -15,7 +15,8 @@ if( empty( $wgDBservers ) ) { } else { $ip = gethostbyname( $host ); } - printf( "%10s %20s %3d\n", $ip, $host, $lag ); + $stars = str_repeat( '*', intval( $lag ) ); + printf( "%10s %20s %3d %s\n", $ip, $host, $lag, $stars ); } }