| 633 | |
| 634 | |
| 635 | def sn_update_delay(file_path, configuration_file_path, timeptr, |
| 636 | constellation_size, remote_ssh, |
| 637 | remote_ftp): # updating delays |
| 638 | remote_ftp.put(os.path.join(os.getcwd(), "starrynet/sn_orchestrater.py"), |
| 639 | file_path + "/sn_orchestrater.py") |
| 640 | remote_ftp.put( |
| 641 | configuration_file_path + "/" + file_path + '/delay/' + str(timeptr) + |
| 642 | '.txt', file_path + '/' + str(timeptr) + '.txt') |
| 643 | sn_remote_cmd( |
| 644 | remote_ssh, |
| 645 | "python3 " + file_path + "/sn_orchestrater.py " + file_path + '/' + |
| 646 | str(timeptr) + '.txt ' + str(constellation_size) + " update") |
| 647 | print("Delay updating done.\n") |
| 648 | |
| 649 | |
| 650 | def sn_damage(ratio, damage_list, constellation_size, remote_ssh, remote_ftp, |