revert loss pack to using floats in all related places
This commit is contained in:
parent
02d9418808
commit
ae5d718737
5 changed files with 7 additions and 7 deletions
|
@ -459,7 +459,7 @@ class CoreNetwork(CoreNetworkBase):
|
|||
netem = ["netem"]
|
||||
changed = max(changed, netif.setparam("delay", delay))
|
||||
if loss is not None:
|
||||
loss = int(loss)
|
||||
loss = float(loss)
|
||||
changed = max(changed, netif.setparam("loss", loss))
|
||||
if duplicate is not None:
|
||||
duplicate = int(duplicate)
|
||||
|
|
|
@ -225,7 +225,7 @@ class OvsNet(CoreNetworkBase):
|
|||
delay_changed = netif.setparam("delay", delay)
|
||||
|
||||
if loss is not None:
|
||||
loss = int(loss)
|
||||
loss = float(loss)
|
||||
loss_changed = netif.setparam("loss", loss)
|
||||
|
||||
if duplicate is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue