]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: expose avg data for long running avgs 22341/head
authorBoris Ranto <branto@redhat.com>
Tue, 5 Jun 2018 11:58:00 +0000 (13:58 +0200)
committerBoris Ranto <branto@redhat.com>
Tue, 5 Jun 2018 16:51:39 +0000 (18:51 +0200)
commitbdc6d75f8d12640d3944f531ee3509fcb05ec874
tree446048e3d44eec21c616f30dfee8744c9b9bcd4d
parent5f70635e4e26957bb295a62eb54f2441e8caf207
mgr: expose avg data for long running avgs

While exposing the long running avgs, the order of regular and long
running avg data got mixed up resulting in exposing empty data for both
since there is no regular data for long running avgs and vice versa.
This commit fixes this issue by changing the order of the if/else
statement exposing regular data for regular counters and avg data for
long running avgs.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 2042c6c27beb504454daaaf185b9ce8f04d679d9)
src/mgr/ActivePyModules.cc