def parse(self):
        lines = self.out.readlines()
        avg_latency = 0
        mdev = 0
        try:
            stats_str = lines[-1].split('=')[1]
            stats = stats_str.split('/')
            avg_latency = float(stats[1])
            mdev = float(stats[3].split(' ')[0])
        except Exception, e:
            self.warn("ping parsing exception: %s" % e)
        return (avg_latency, mdev)
dataset/ETHPy150Open coreemu/core/daemon/examples/netns/wlanemanetests.py/PingCmd.parse/original