]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: expose avg data for long running avgs 22366/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:50:22 +0000 (18:50 +0200)
commitfb33246d10691ae40888601e8fb208aa252640f0
tree939f5a72eb789dc4d6ac566cb1aec8212ded07b5
parent7c6f5c23592db3c2a76390e73062d481a32d119b
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