Fix last master commit
This commit is contained in:
@@ -83,8 +83,8 @@ std::string validate_pool_config(json11::Json::object & new_cfg, json11::Json ol
|
|||||||
}
|
}
|
||||||
else if (key == "block_size")
|
else if (key == "block_size")
|
||||||
{
|
{
|
||||||
value = value.is_string() ? parse_size(value.string_value()) : value.uint64_value();
|
uint64_t block_size = value.is_string() ? parse_size(value.string_value()) : value.uint64_value();
|
||||||
if (!value)
|
if (!block_size)
|
||||||
{
|
{
|
||||||
return key+" must be an integer with or without size suffix (K/M/G/T)";
|
return key+" must be an integer with or without size suffix (K/M/G/T)";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user