From e65b8bb071fdbb048f0cd1602a53d19090b312af Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 6 Mar 2018 11:44:52 +0100 Subject: [PATCH] mgr/dashboard_v2: Add units to performance counters Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard_v2/controllers/perf_counters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py b/src/pybind/mgr/dashboard_v2/controllers/perf_counters.py index 418760d25968c..63d62fedddf98 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) -- 2.39.5