def run_check(self):
    for line in self.commandOut:
        state = 'PASS'
        data = line.strip('\n').split(':')
        if (len(data) < 2):
            continue
        field = data[0].strip(' ')
        valraw = data[1].strip(' ').split(' ')
        valnum = valraw[0]
        valper = int(str(valraw[1]).replace('(', '').replace(')', '').replace('%', ''))
        if (('Accelerated conns' in field) and (valper < 30)):
            state = 'WARN'
        if (('Accelerated pkts' in field) and (valper < 50)):
            state = 'WARN'
        if (('F2Fed' in field) and (valper > 40)):
            state = 'FAIL'
        self.add_result((((self.title + ' (') + field) + ')'), state, (((valnum + '(') + str(valper)) + '%)'))
def run_check(self):
    for line in self.commandOut:
        state = 'PASS'
        data = line.strip('\n').split(':')
        if (len(data) < 2):
            continue
        field = data[0].strip(' ')
        valraw = data[1].strip(' ').split(' ')
        valnum = valraw[0]
        valper = int(str(valraw[1]).replace('(', ).replace(')', ).replace('%', ))
        if (('Accelerated conns' in field) and (valper < 30)):
            state = 'WARN'
        if (('Accelerated pkts' in field) and (valper < 50)):
            state = 'WARN'
        if (('F2Fed' in field) and (valper > 40)):
            state = 'FAIL'
        self.add_result((((self.title + ' (') + field) + ')'), state, (((valnum + '(') + str(valper)) + '%)'))