@contract()
def log_host_overload(db, overload_threshold, hostname, previous_overload,
                      host_total_mhz, host_utilization_mhz):
    overload = overload_threshold * host_total_mhz < host_utilization_mhz
    overload_int = int(overload)
    if previous_overload != -1 and previous_overload != overload_int \
            or previous_overload == -1:
        db.insert_host_overload(hostname, overload)
        if log.isEnabledFor(logging.DEBUG):
            log.debug('Overload state logged: %s', str(overload))

    return overload_int
Moves cursor up the indicated # of lines in same column.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/collector.py/log_host_overload--crossover with--dataset/ETHPy150Open jonathanslenders/pymux/pymux/screen.py/BetterScreen.cursor_up