From 3a84bd614edc440d3e4fd45adeb90460d8853b95 Mon Sep 17 00:00:00 2001 From: victoryang00 Date: Sun, 7 Apr 2024 20:33:49 -0700 Subject: [PATCH] fix result of energy --- artifact/common_util.py | 18 ------------------ artifact/usecase_energy_outrage.py | 6 +++--- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/artifact/common_util.py b/artifact/common_util.py index 43470e4..a6611fe 100644 --- a/artifact/common_util.py +++ b/artifact/common_util.py @@ -745,28 +745,10 @@ def run_checkpoint_restore_outrage( exec_with_log(f"sleep {time1}") exec_with_log(f"ssh -t {energy} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {energy} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {energy} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {energy} pkill -SIGINT MVVM_restore") exec_with_log(f"sleep {time2}") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") - exec_with_log("sleep 14") - exec_with_log(f"ssh -t {slowtier} pkill -SIGINT MVVM_restore") exec_with_log(f"sleep 100") exec_with_log(f"scp {burst}:{pwd}/build/*.*.out ./") diff --git a/artifact/usecase_energy_outrage.py b/artifact/usecase_energy_outrage.py index 211fdde..0ea6343 100644 --- a/artifact/usecase_energy_outrage.py +++ b/artifact/usecase_energy_outrage.py @@ -147,9 +147,9 @@ def get_eneragy_outrage(time,time1,time2): envs[0], time,time1,time2, f"-o {ip[1]} -s {port}", - f"-i {ip[1]} -e {port} -o {ip[2]} -s {new_port} -r", - f"-i {ip[2]} -e {new_port} -o {ip[3]} -s {new_port1} -r", - f"-i {ip[3]} -e {new_port1} -o {ip[0]} -s {port}", + f"-i {ip[1]} -e {port} -o {ip[2]} -s {new_port}", + f"-i {ip[2]} -e {new_port} -o {ip[0]} -s {port}", + f"-i {ip[0]} -e {port}", ) return results1