Skip to content

Commit

Permalink
fix result of energy
Browse files Browse the repository at this point in the history
  • Loading branch information
victoryang00 committed Apr 8, 2024
1 parent dce9e50 commit 3a84bd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
18 changes: 0 additions & 18 deletions artifact/common_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./")
Expand Down
6 changes: 3 additions & 3 deletions artifact/usecase_energy_outrage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a84bd6

Please sign in to comment.