'Update the command result attributed.'

def update(self):

    processlist = glances_processes.getalllist()
    for (k, v) in iteritems(self.get()):
        if (not v.enable()):
            continue
        try:
            amps_list = [p for p in processlist for c in p['cmdline'] if (re.search(v.regex(), c) is not None)]
        except TypeError:
            continue
        if (len(amps_list) > 0):
            logger.debug('AMPS:    {}    process    detected    (PID={})'.format(k, amps_list[0]['pid']))
            thread = threading.Thread(target=v.update_wrapper, args=[amps_list])
            thread.start()
        else:
            v.set_count(0)
            if ((v.count_min() is not None) and (v.count_min() > 0)):
                v.set_result('No    running    process')
    return self.__amps_dict
