mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mon: make note about osd df calc bug
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
f3ce75c164
commit
718faf0e69
@ -625,6 +625,11 @@ public:
|
||||
max_var(-1),
|
||||
stddev(0),
|
||||
sum(0) {
|
||||
// FIXME: average_util should be calculated from the same set of
|
||||
// nodes that dump_item considers when calculating the stddev. we
|
||||
// probably need to make two tree traversals for that to work,
|
||||
// maybe with a callback like precalc_item() that's looks similar
|
||||
// to dump_item()?
|
||||
if (pgm->osd_sum.kb)
|
||||
average_util = 100.0 * (double)pgm->osd_sum.kb_used / (double)pgm->osd_sum.kb;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user