don't make netem crash with loss 0.0000 %
@@ -29,7 +29,7 @@ def delayCmds(parent, delay=None, jitter=None,
netemargs = '%s%s%s%s' % (
'delay %s ' % delay if delay is not None else '',
'%s ' % jitter if jitter is not None else '',
- 'loss %0.4f ' % loss if loss is not None else '', # The fix
+ 'loss %0.4f ' % loss if loss is not None and loss > 0 else '', # The fix
'limit %d' % max_queue_size if max_queue_size is not None
else '' )
if netemargs:
