add cute barchart
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Dec 2006 02:44:53 +0000 (02:44 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Dec 2006 02:44:53 +0000 (02:44 +0000)
maintenance/getLagTimes.php

index 827bc49..f2c06f6 100644 (file)
@@ -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 );
        }
 }