Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14022907
D8058.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
768 B
Referenced Files
None
Subscribers
None
D8058.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8058: Don't let Diffusion show that an importing repository is "100%" imported
Attached
Detach File
Event Timeline
Log In to Comment