rbd: fix rados df parser for luminous
This commit is contained in:
@ -537,8 +537,12 @@ sub status {
|
|||||||
|
|
||||||
my $parser = sub {
|
my $parser = sub {
|
||||||
my $line = shift;
|
my $line = shift;
|
||||||
if ($line =~ m/^\s+total\s(\S+)\s+(\d+)/) {
|
if ($line =~ m/^\s*total(?:\s|_)(\S+)\s+(\d+)(k|M|G|T)?/) {
|
||||||
$stats->{$1} = $2;
|
$stats->{$1} = $2;
|
||||||
|
# luminous has units here..
|
||||||
|
if ($3) {
|
||||||
|
$stats->{$1} *= $rbd_unittobytes->{$3}/1024;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user