]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: osd df: fix average_util calculation 4399/head
authorMykola Golub <mgolub@mirantis.com>
Sat, 18 Apr 2015 13:59:12 +0000 (16:59 +0300)
committerMykola Golub <mgolub@mirantis.com>
Sun, 19 Apr 2015 17:18:24 +0000 (20:18 +0300)
commitcc5f144a51d10f30e71b96c888a8d2a125e7c9b1
tree6189d108cbaf474b4d3d66d3b212d5b48da40343
parent69e3ec8a6b1b96ed40fb0b5ec5aae64e834f0cdb
mon: osd df: fix average_util calculation

average_util should be calculated from the same set of nodes that
dump_item considers when calculating the stddev.

While here, remove unnecessary check for kb > 0:
get_bucket_utilization returns false if kb <= 0.

Also, update get_bucket_utilization accordingly to the preferred
convention to use pointers and not references for output arguments.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/mon/OSDMonitor.cc