'Update CPU stats using the input method.'

@GlancesPlugin._check_decorator
@GlancesPlugin._log_result_decorator
def update(self):

    self.reset()
    if (self.input_method == 'local'):
        self.update_local()
    elif (self.input_method == 'snmp'):
        self.update_snmp()
    return self.stats
