mctest.php: nicely align server names
authorAntoine Musso <hashar@free.fr>
Wed, 31 Jul 2013 12:25:30 +0000 (14:25 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 1 Aug 2013 09:09:33 +0000 (11:09 +0200)
commit480f2d058121ed700bc6c9273c718c69484c4a7c
treeb812e7aec384337ffc4e58d1e4399ece8f177858
parent72e1b54ad49a6304c3f056c773cc51afe21f3c48
mctest.php: nicely align server names

The servers entries being made of an IP address and a port, they would
often have different lenghts which clutter the output indentation.

Previously the output columns would be slightly misaligned:

$ mwscript mctest.php --wiki=enwiki
10.4.1.255:11211 set: 100   time: 0.17192602157593
10.4.1.1:11211 set: 100   time: 0.19056081771851
$

With this patch:

$ mwscript mctest.php --wiki=enwiki
10.4.1.255:11211 set: 100   time: 0.17192602157593
10.4.1.1:11211   set: 100   time: 0.19056081771851
$

Change-Id: I80199a229ed6310686411f08e0344c7d906414ea
maintenance/mctest.php