Fix some header formatting in bin/storage probe
Summary: Ref T9514. I missed these when I swapped out the console stuff recently. Test Plan: Ran `bin/storage probe`, saw bold instead of escape sequences. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9514 Differential Revision: https://secure.phabricator.com/D14240
This commit is contained in:
@@ -60,9 +60,9 @@ final class PhabricatorStorageManagementProbeWorkflow
|
|||||||
$overall);
|
$overall);
|
||||||
|
|
||||||
$table->addRow(array(
|
$table->addRow(array(
|
||||||
'name' => phutil_console_format('**%s**', $db),
|
'name' => tsprintf('**%s**', $db),
|
||||||
'size' => phutil_console_format('**%s**', $database_size),
|
'size' => tsprintf('**%s**', $database_size),
|
||||||
'percentage' => phutil_console_format('**%s**', $database_percentage),
|
'percentage' => tsprintf('**%s**', $database_percentage),
|
||||||
));
|
));
|
||||||
$data[$db] = isort($data[$db], '_totalSize');
|
$data[$db] = isort($data[$db], '_totalSize');
|
||||||
foreach ($data[$db] as $table_name => $info) {
|
foreach ($data[$db] as $table_name => $info) {
|
||||||
@@ -82,9 +82,9 @@ final class PhabricatorStorageManagementProbeWorkflow
|
|||||||
$overall,
|
$overall,
|
||||||
$overall);
|
$overall);
|
||||||
$table->addRow(array(
|
$table->addRow(array(
|
||||||
'name' => phutil_console_format('**%s**', pht('TOTAL')),
|
'name' => tsprintf('**%s**', pht('TOTAL')),
|
||||||
'size' => phutil_console_format('**%s**', $overall_size),
|
'size' => tsprintf('**%s**', $overall_size),
|
||||||
'percentage' => phutil_console_format('**%s**', $overall_percentage),
|
'percentage' => tsprintf('**%s**', $overall_percentage),
|
||||||
));
|
));
|
||||||
|
|
||||||
$table->draw();
|
$table->draw();
|
||||||
|
|||||||
Reference in New Issue
Block a user