casadm: Fix seq cutoff threshold units
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
8a8572d8bb
commit
61d704fbb9
@ -745,8 +745,8 @@ int set_param_seq_cutoff_handle_option(char *opt, const char **arg)
|
|||||||
{
|
{
|
||||||
if (!strcmp(opt, "threshold")) {
|
if (!strcmp(opt, "threshold")) {
|
||||||
if (validate_str_num(arg[0], "sequential cutoff threshold",
|
if (validate_str_num(arg[0], "sequential cutoff threshold",
|
||||||
OCF_SEQ_CUTOFF_MIN_THRESHOLD,
|
OCF_SEQ_CUTOFF_MIN_THRESHOLD / KiB,
|
||||||
OCF_SEQ_CUTOFF_MAX_THRESHOLD) == FAILURE)
|
OCF_SEQ_CUTOFF_MAX_THRESHOLD / KiB) == FAILURE)
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
|
|
||||||
SET_CORE_PARAM(core_param_seq_cutoff_threshold, atoi(arg[0]) * KiB);
|
SET_CORE_PARAM(core_param_seq_cutoff_threshold, atoi(arg[0]) * KiB);
|
||||||
|
Loading…
Reference in New Issue
Block a user