fix find_victim
This commit is contained in:
parent
4dedea0520
commit
c54134e46c
6
nohang
6
nohang
@ -52,7 +52,7 @@ 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])
|
||||
@ -760,7 +760,7 @@ 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:
|
||||
@ -785,7 +785,7 @@ 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:
|
||||
|
Loading…
Reference in New Issue
Block a user