Project

General

Profile

Actions

Bug #39714

closed

mgr/dashboard: Pool read/write OPS shows too many decimal places

Added by Patrick Seidensal almost 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
-
Category:
Component - Pools
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description


Files

d67824d82b3ea3f630264b044ecbbe50.png (11.6 KB) d67824d82b3ea3f630264b044ecbbe50.png Patrick Seidensal, 05/13/2019 06:07 AM

Related issues 2 (0 open2 closed)

Has duplicate Dashboard - Bug #41345: mgr/dashboard: Read ops values should be roundedResolvedStephan Müller

Actions
Copied to Dashboard - Backport #44639: nautilus: mgr/dashboard: Pool read/write OPS shows too many decimal placesResolvedErnesto PuertaActions
Actions #1

Updated by Lenz Grimmer about 4 years ago

  • 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)
Actions #2

Updated by Stephan Müller about 4 years ago

  • Has duplicate Bug #41345: mgr/dashboard: Read ops values should be rounded added
Actions #3

Updated by anurag bandhu about 4 years ago

I think Write-ops also need to be rounded off

Actions #4

Updated by Stephan Müller about 4 years ago

The thing is that the timestamps are 4 seconds apart by default, which results in an float at the end.

Actions #5

Updated by Stephan Müller about 4 years ago

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

Actions #6

Updated by anurag bandhu about 4 years ago

yeah this is working

Actions #7

Updated by anurag bandhu about 4 years ago

  • Status changed from New to Pending Backport
Actions #8

Updated by anurag bandhu about 4 years ago

  • Backport set to nautilus
Actions #9

Updated by anurag bandhu about 4 years ago

  • Copied to Backport #44639: nautilus: mgr/dashboard: Pool read/write OPS shows too many decimal places added
Actions #10

Updated by anurag bandhu about 4 years ago

  • Pull request ID set to 33887
Actions #11

Updated by Nathan Cutler about 4 years ago

  • 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".

Actions #12

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 137 to Component - Pools
Actions

Also available in: Atom PDF