'Update processes stats using the input method.'

def update(self):

    self.reset()
    if (self.input_method == 'local'):
        glances_processes.update()
        self.stats = glances_processes.getcount()
    elif (self.input_method == 'snmp'):
        pass
    return self.stats
