Skip to content
Permalink
Browse files

Merge pull request #882 from stephanreiter/master

Don't pass 'loss 0' to tc as it will cause an error on newer versions
  • Loading branch information...
lantz committed Jun 9, 2019
2 parents e203808 + 46242ac commit de28f67a97fc8915cc1586c984465d89a016d8eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 mininet/link.py
@@ -295,7 +295,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 %.5f ' % loss if loss is not None else '',
'loss %.5f ' % loss if (loss is not None and loss > 0) else '',
'limit %d' % max_queue_size if max_queue_size is not None
else '' )
if netemargs:

0 comments on commit de28f67

Please sign in to comment.
You can’t perform that action at this time.