'Update processes stats using the input method.'

def update(self):

    self.reset()
    if (self.input_method == 'local'):
        if glances_processes.is_tree_enabled():
            self.stats = glances_processes.gettree()
        else:
            self.stats = glances_processes.getlist()
        self.max_values = glances_processes.max_values()
    elif (self.input_method == 'snmp'):
        pass
    return self.stats
