mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
netem: bugfix for loading correlation
This commit is contained in:
parent
1965b8810d
commit
88372ca1cd
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ int tc_netem_parse(struct rtnl_qdisc **netem, json_t *cfg)
|
|||
if (json_delay_correlation) {
|
||||
val = json_integer_value(json_delay_correlation);
|
||||
|
||||
if (!json_is_real(json_delay_correlation))
|
||||
if (!json_is_integer(json_delay_correlation) || val < 0 || val > 100)
|
||||
error("Setting 'correlation' must be a positive integer within the range [ 0, 100 ]");
|
||||
|
||||
rtnl_netem_set_delay_correlation(ne, val);
|
||||
|
|
Loading…
Add table
Reference in a new issue