Fix parsing of fault_badpeernet_interval option
Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>master
parent
026d422f8f
commit
3f8471ea68
2
config.c
2
config.c
|
@ -116,7 +116,7 @@ static enum parser_result parse_pod_setting(const char *option,
|
|||
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].type = FTMO_LINEAR_SECONDS;
|
||||
if (!strcasecmp("ASAP", value)) {
|
||||
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].val = 0;
|
||||
} else if (1 != sscanf(value, "%d", &val)) {
|
||||
} else if (1 == sscanf(value, "%d", &val)) {
|
||||
pod->flt_interval_pertype[FT_BAD_PEER_NETWORK].val = val;
|
||||
} else {
|
||||
return BAD_VALUE;
|
||||
|
|
Loading…
Reference in New Issue