1

ceph_reweight.pl: wrap variable with sprintf, now it works with system()

This commit is contained in:
eleksir
2018-07-24 00:17:19 +03:00
parent 9e0117830a
commit 550fcd1369

View File

@@ -39,7 +39,7 @@ if (defined($ARGV[0]) and ($ARGV[0] eq '--do-it')) {
if (defined($ARGV[1])) {
help () if ($ARGV[1] ne '--dry');
} else {
system('ceph', 'osd', 'reweght', $osd->{'id'}, $new_weight);
system('ceph', 'osd', 'reweght', sprintf("%d", $osd->{'id'}), sprintf("%f", $new_weight));
}
}
} else {