aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl/sledjchisl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-rw-r--r--src/sledjchisl/sledjchisl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 6298760..fc0857a 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -521,6 +521,7 @@ char *Tconsole = "SledjChisl";
521char *Tsocket = "opensim-tmux.socket"; 521char *Tsocket = "opensim-tmux.socket";
522char *Ttab = "SC"; 522char *Ttab = "SC";
523char *Tcmd = "tmux -S"; 523char *Tcmd = "tmux -S";
524int startPort = 8002;
524char *backupIARsim = "Sandbox"; 525char *backupIARsim = "Sandbox";
525char *rSync = ""; 526char *rSync = "";
526int rSyncPort = 0; 527int rSyncPort = 0;
@@ -1847,8 +1848,8 @@ void prepSims(simData *simd, char *sim, char *type, int count, int window, int p
1847 shellMe("echo '}\nreturn IDs' >>%s/IDs_%d.lua", scTemp, window); 1848 shellMe("echo '}\nreturn IDs' >>%s/IDs_%d.lua", scTemp, window);
1848 1849
1849 findWindow(simd, sim, type, count, window, panes, pane); 1850 findWindow(simd, sim, type, count, window, panes, pane);
1850 simd->portH = 8004 + count * 2; 1851 simd->portH = startPort + 2 + count * 2;
1851 simd->portU = 8005 + count * 2; 1852 simd->portU = startPort + 3 + count * 2;
1852 cmd = xmprintf("rm -fr %s/sim%d; mkdir -p %s/sim%d; sed -E" 1853 cmd = xmprintf("rm -fr %s/sim%d; mkdir -p %s/sim%d; sed -E"
1853 " -e 's@\\[Region\\]@" 1854 " -e 's@\\[Region\\]@"
1854 " paneID = \"\\%s\"\\n" 1855 " paneID = \"\\%s\"\\n"
@@ -8109,6 +8110,7 @@ Other possibilities -
8109 if ((tmp = configs->getstr(configs, "Tconsole", false)) != NULL) {Tconsole = tmp; V("Setting Tconsole = %s", Tconsole);} 8110 if ((tmp = configs->getstr(configs, "Tconsole", false)) != NULL) {Tconsole = tmp; V("Setting Tconsole = %s", Tconsole);}
8110 if ((tmp = configs->getstr(configs, "Tsocket", false)) != NULL) {Tsocket = tmp; V("Setting Tsocket = %s", Tsocket);} 8111 if ((tmp = configs->getstr(configs, "Tsocket", false)) != NULL) {Tsocket = tmp; V("Setting Tsocket = %s", Tsocket);}
8111 if ((tmp = configs->getstr(configs, "Ttab", false)) != NULL) {Ttab = tmp; V("Setting Ttab = %s", Ttab);} 8112 if ((tmp = configs->getstr(configs, "Ttab", false)) != NULL) {Ttab = tmp; V("Setting Ttab = %s", Ttab);}
8113 if ((vd = configs->get (configs, "startPort", NULL, false)) != NULL) {startPort = (int) *((float *) vd); V("Setting startPort = %d", startPort);}
8112 if ((tmp = configs->getstr(configs, "backupIARsim", false)) != NULL) {backupIARsim = tmp; V("Setting backupIARsim = %s", backupIARsim);} 8114 if ((tmp = configs->getstr(configs, "backupIARsim", false)) != NULL) {backupIARsim = tmp; V("Setting backupIARsim = %s", backupIARsim);}
8113 if ((tmp = configs->getstr(configs, "rsync", false)) != NULL) {rSync = tmp; V("Setting rsync = %s", rSync);} 8115 if ((tmp = configs->getstr(configs, "rsync", false)) != NULL) {rSync = tmp; V("Setting rsync = %s", rSync);}
8114 if ((vd = configs->getstr(configs, "rsyncPort", false)) != NULL) {rSyncPort = (int) *((float *) vd); V("Setting rsyncPort = %s", rSyncPort);} 8116 if ((vd = configs->getstr(configs, "rsyncPort", false)) != NULL) {rSyncPort = (int) *((float *) vd); V("Setting rsyncPort = %s", rSyncPort);}