mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
Merge pull request #20742 from votdev/perf_counter_units
mgr/dashboard v2: Add units to performance counters
This commit is contained in:
commit
b96dfb5b84
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user