@staticmethod
    def mgenrate(kbps):
        ''' Return a MGEN periodic rate string for the given kilobits-per-sec.
            Assume 1500 byte MTU, 20-byte IP + 8-byte UDP headers, leaving
            1472 bytes for data.
        '''
        bps = (kbps / 8) * 1000.0
        maxdata = 1472
        pps = math.ceil(bps / maxdata)
        return (pps, maxdata) % "%s %s"
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/wlanemanetests.py/MgenCmd.mgenrate/swapped operands of `%`