Revision e0bf8ece examples/cpu.py

View differences:

examples/cpu.py
8 8
from mininet.node import CPULimitedHost
9 9
from mininet.topolib import TreeTopo
10 10
from mininet.util import custom, waitListening
11
from mininet.log import setLogLevel, output, info
11
from mininet.log import setLogLevel, info
12 12

  
13
from time import sleep
14 13

  
15 14
def bwtest( cpuLimits, period_us=100000, seconds=5 ):
16 15
    """Example/test of link and CPU bandwidth limits

Also available in: Unified diff