Page MenuHomePhabricator

D12979.id.diff
No OneTemporary

D12979.id.diff

diff --git a/src/applications/conduit/controller/PhabricatorConduitLogController.php b/src/applications/conduit/controller/PhabricatorConduitLogController.php
--- a/src/applications/conduit/controller/PhabricatorConduitLogController.php
+++ b/src/applications/conduit/controller/PhabricatorConduitLogController.php
@@ -98,7 +98,7 @@
array($call->getMethod(), $client),
$status,
$call->getError(),
- pht('%d us', number_format($call->getDuration())),
+ pht('%s us', new PhutilNumber($call->getDuration())),
phabricator_datetime($call->getDateCreated(), $viewer),
);
}
diff --git a/src/applications/console/plugin/DarkConsoleServicesPlugin.php b/src/applications/console/plugin/DarkConsoleServicesPlugin.php
--- a/src/applications/console/plugin/DarkConsoleServicesPlugin.php
+++ b/src/applications/console/plugin/DarkConsoleServicesPlugin.php
@@ -198,7 +198,7 @@
$summary[] = array(
$type,
number_format($counts[$type]),
- pht('%d us', number_format((int)(1000000 * $totals[$type]))),
+ pht('%s us', new PhutilNumber((int)(1000000 * $totals[$type]))),
sprintf('%.1f%%', 100 * $totals[$type] / $page_total),
);
}
@@ -258,10 +258,12 @@
break;
}
+ $offset = ($row['begin'] - $data['start']);
+
$rows[] = array(
$row['type'],
- pht('+%d ms', number_format(1000 * ($row['begin'] - $data['start']))),
- pht('%d us', number_format(1000000 * $row['duration'])),
+ pht('+%s ms', new PhutilNumber(1000 * $offset)),
+ pht('%s us', new PhutilNumber(1000000 * $row['duration'])),
$info,
$analysis,
);
diff --git a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
--- a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
+++ b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php
@@ -50,7 +50,7 @@
$rows[] = array(
$class,
number_format($info['n']),
- pht('%d us', number_format((int)($info['duration'] / $info['n']))),
+ pht('%s us', new PhutilNumber((int)($info['duration'] / $info['n']))),
);
}
diff --git a/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php b/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
--- a/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
+++ b/src/applications/daemon/controller/PhabricatorWorkerTaskDetailController.php
@@ -141,7 +141,7 @@
$expires);
if ($task->isArchived()) {
- $duration = pht('%d us', number_format($task->getDuration()));
+ $duration = pht('%s us', new PhutilNumber($task->getDuration()));
} else {
$duration = phutil_tag('em', array(), pht('Not Completed'));
}
diff --git a/src/applications/herald/query/HeraldTranscriptSearchEngine.php b/src/applications/herald/query/HeraldTranscriptSearchEngine.php
--- a/src/applications/herald/query/HeraldTranscriptSearchEngine.php
+++ b/src/applications/herald/query/HeraldTranscriptSearchEngine.php
@@ -125,7 +125,7 @@
}
$item->addAttribute($handles[$xscript->getObjectPHID()]->renderLink());
$item->addAttribute(
- pht('%d ms', number_format((int)(1000 * $xscript->getDuration()))));
+ pht('%s ms', new PhutilNumber((int)(1000 * $xscript->getDuration()))));
$item->addIcon(
'none',
phabricator_datetime($xscript->getTime(), $viewer));

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 2, 7:11 AM (3 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7377811
Default Alt Text
D12979.id.diff (3 KB)

Event Timeline