fix find_victim
This commit is contained in:
parent
4dedea0520
commit
c54134e46c
12
nohang
12
nohang
@ -52,10 +52,10 @@ def update_stat_dict_and_print(key):
|
||||
else:
|
||||
new_value = stat_dict[key] + 1
|
||||
stat_dict.update({key: new_value})
|
||||
stats_msg = '\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
stats_msg = '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
format_time(time() - start_time))
|
||||
for i in stat_dict:
|
||||
stats_msg += '\n - {}: {}'.format(i, stat_dict[i])
|
||||
stats_msg += '\n- {}: {}'.format(i, stat_dict[i])
|
||||
|
||||
|
||||
|
||||
@ -760,11 +760,11 @@ def find_victim_and_send_signal(signal):
|
||||
print(mem_info)
|
||||
print(preventing_oom_message)
|
||||
|
||||
stats_msg = '\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
stats_msg = '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
format_time(time() - start_time))
|
||||
|
||||
for key in stat_dict:
|
||||
stats_msg += '\n - {}: {}'.format(key, stat_dict[key])
|
||||
stats_msg += '\n- {}: {}'.format(key, stat_dict[key])
|
||||
|
||||
print(stats_msg)
|
||||
|
||||
@ -785,11 +785,11 @@ def find_victim_and_send_signal(signal):
|
||||
update_stat_dict_and_print(key)
|
||||
|
||||
|
||||
stats_msg = '\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
stats_msg = '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\033[4mUptime: {}; corrective actions:\033[0m'.format(
|
||||
format_time(time() - start_time))
|
||||
|
||||
for key in stat_dict:
|
||||
stats_msg += '\n - {}: {}'.format(key, stat_dict[key])
|
||||
stats_msg += '\n- {}: {}'.format(key, stat_dict[key])
|
||||
|
||||
print(stats_msg)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user