Bug #39714
closed
- Translation missing: en.field_tag_list set to low-hanging-fruit, usability
- Subject changed from mgr/dashboard: Pool read/write OPS shows to many decimal places to mgr/dashboard: Pool read/write OPS shows too many decimal places
- Tags deleted (
low-hanging-fruit)
- Has duplicate Bug #41345: mgr/dashboard: Read ops values should be rounded added
I think Write-ops also need to be rounded off
The thing is that the timestamps are 4 seconds apart by default, which results in an float at the end.
I think the following should fix the problem:
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html
index c985616d3a..ceef88337a 100644
--- a/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html
+++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html
@@ -254,7 +254,7 @@
<ng-template #perSecondTpl
let-row="row"
let-value="value">
- {{ value }} /s
+ {{ value | dimless }} /s
</ng-template>
<ng-template #executingTpl
- Status changed from New to Pending Backport
- Copied to Backport #44639: nautilus: mgr/dashboard: Pool read/write OPS shows too many decimal places added
- Pull request ID set to 33887
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".
- Project changed from mgr to Dashboard
- Category changed from 137 to Component - Pools
Also available in: Atom
PDF