Skip to content

Commit

Permalink
mgr/dashboard_v2: Add units to performance counters
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <[email protected]>
  • Loading branch information
votdev committed Mar 6, 2018
1 parent f4bb815 commit e65b8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/dashboard_v2/controllers/perf_counters.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get(self, service_id):
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)
Expand Down

0 comments on commit e65b8bb

Please sign in to comment.