1
0
Fork 0
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:
Steffen Vogel 2017-12-20 14:56:12 +01:00
parent 1965b8810d
commit 88372ca1cd

View file

@ -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);