'Update per-CPU stats using the input method.'

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

    self.reset()
    if (self.input_method == 'local'):
        self.stats = cpu_percent.get(percpu=True)
    else:
        pass
    return self.stats
