Page MenuHomePhabricator

D8058.diff
No OneTemporary

D8058.diff

Index: src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
===================================================================
--- src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
+++ src/applications/diffusion/controller/DiffusionRepositoryEditMainController.php
@@ -954,7 +954,13 @@
$percentage = 0;
}
- $percentage = sprintf('%.1f%%', $percentage);
+ // Cap this at "99.99%", because it's confusing to users when the actual
+ // fraction is "99.996%" and it rounds up to "100.00%".
+ if ($percentage > 99.99) {
+ $percentage = 99.99;
+ }
+
+ $percentage = sprintf('%.2f%%', $percentage);
$view->addItem(
id(new PHUIStatusItemView())

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 8:58 PM (10 h, 39 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6761770
Default Alt Text
D8058.diff (768 B)

Event Timeline