From: Volker Theile Date: Tue, 6 Mar 2018 10:44:52 +0000 (+0100) Subject: mgr/dashboard_v2: Add units to performance counters X-Git-Tag: v13.0.2~69^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e65b8bb071fdbb048f0cd1602a53d19090b312af;p=ceph.git mgr/dashboard_v2: Add units to performance counters Signed-off-by: Volker Theile --- diff --git a/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py b/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py index 418760d25968..63d62fedddf9 100644 --- a/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py +++ b/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py @@ -34,7 +34,7 @@ class PerfCounter(RESTController): if mgr._stattype_to_str(value['type']) == 'counter': counter['value'] = self._get_rate( self._service_type, service_id, key) - counter['unit'] = '/s' + counter['unit'] = mgr._unit_to_str(value['units']) else: counter['value'] = self._get_latest( self._service_type, service_id, key)