Skip to content
This repository was archived by the owner on Apr 7, 2022. It is now read-only.

Commit 03fea70

Browse files
author
epriestley
committed
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
1 parent 4d5278a commit 03fea70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/infrastructure/storage/management/workflow/PhabricatorStorageManagementProbeWorkflow.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public function execute(PhutilArgumentParser $args) {
6060
$overall);
6161

6262
$table->addRow(array(
63-
'name' => phutil_console_format('**%s**', $db),
64-
'size' => phutil_console_format('**%s**', $database_size),
65-
'percentage' => phutil_console_format('**%s**', $database_percentage),
63+
'name' => tsprintf('**%s**', $db),
64+
'size' => tsprintf('**%s**', $database_size),
65+
'percentage' => tsprintf('**%s**', $database_percentage),
6666
));
6767
$data[$db] = isort($data[$db], '_totalSize');
6868
foreach ($data[$db] as $table_name => $info) {
@@ -82,9 +82,9 @@ public function execute(PhutilArgumentParser $args) {
8282
$overall,
8383
$overall);
8484
$table->addRow(array(
85-
'name' => phutil_console_format('**%s**', pht('TOTAL')),
86-
'size' => phutil_console_format('**%s**', $overall_size),
87-
'percentage' => phutil_console_format('**%s**', $overall_percentage),
85+
'name' => tsprintf('**%s**', pht('TOTAL')),
86+
'size' => tsprintf('**%s**', $overall_size),
87+
'percentage' => tsprintf('**%s**', $overall_percentage),
8888
));
8989

9090
$table->draw();

0 commit comments

Comments
 (0)