def check_memory(i, memory_threshold, monit_result, outstanding_mem_polls):
    if (monit_result.memory['used_percent'] > memory_threshold):
        logging.debug('system memory usage exceeds %d%%: %s', memory_threshold, monit_result.memory)
        outstanding_mem_polls[i] = monit_result.memory
def check_memory(i, memory_threshold, monit_result, outstanding_mem_polls):
    if (monit_result.memory['used_percent'] > memory_threshold):
        logging.debug('system memory usage exceeds %d%%: %s', memory_threshold, monit_result.memory)
        outstanding_mem_polls[i] = monit_result.memory