'Update core stats.
Stats is a dict (with both physical and log cpu number) instead of a integer.'

def update(self):

    self.reset()
    if (self.input_method == 'local'):
        try:
            self.stats['phys'] = psutil.cpu_count(logical=False)
            self.stats['log'] = psutil.cpu_count()
        except NameError:
            self.reset()
    elif (self.input_method == 'snmp'):
        pass
    return self.stats
