From ee4af9ebb77f58821ab1c3e4b4bb08d7d5f89301 Mon Sep 17 00:00:00 2001 From: onefang Date: Fri, 25 Mar 2022 09:59:10 +1000 Subject: Move save i/oar to before gitar. Should save some space. Very rarely needed the i/oar file anyway. --- src/sledjchisl/sledjchisl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index c7afb74..3a99afa 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -2765,8 +2765,6 @@ byTab has the short name as the key, simData as the value. snprintf(toybuf, sizeof(toybuf), "save iar %s %s / password %s/%s_%s-%s.iar -c -f=/Trash", sim, last, scBackup, sim, last, date); if (NULL != ourSims->backup) { - if ('\0' == rSync[0]) - gitar(simd, sim, count, window, panes, pane, true, member, last); if (member) { sendTmuxCmd(ourSims->backup, toybuf); @@ -2787,6 +2785,8 @@ byTab has the short name as the key, simData as the value. } } } + if ('\0' == rSync[0]) + gitar(simd, sim, count, window, panes, pane, true, member, last); ourSims->la = waitLoadAverage(ourSims->la, loadAverageInc, simTimeOut); } else @@ -2797,8 +2797,6 @@ byTab has the short name as the key, simData as the value. { bool running = checkSimIsRunning(simd->tab); I("Sim %s is being backed up to %s/backups/%s-%s.oar.", simd->name, scRoot, simd->tab, date); - if ('\0' == rSync[0]) - gitar(simd, sim, count, window, panes, pane, false, member, last); if (running) { snprintf(toybuf, sizeof(toybuf), "save oar --all %s/%s-%s.oar", scBackup, simd->tab, date); @@ -2818,6 +2816,8 @@ byTab has the short name as the key, simData as the value. I("%s is done rsyncing.", simd->name); } } + if ('\0' == rSync[0]) + gitar(simd, sim, count, window, panes, pane, false, member, last); ourSims->la = waitLoadAverage(ourSims->la, loadAverageInc, simTimeOut); } break; -- cgit v1.1