Skip to content

Commit

Permalink
fix doretest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya246 committed Dec 12, 2024
1 parent 3b5811e commit 89b54ce
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions atmosim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ long long ETAUpdateSpacing = progressBarSpacing * 25;
const int ETAPolls = 20;
long long ETAPollWindow = ETAUpdateSpacing * ETAPolls;
long long ETAPollTimes[ETAPolls] {0}; // timestamps previously polled
long long ETAPoll = 0;
long long lastETA = 0;
long long ETAPoll = 0, lastETA = 0;

chrono::high_resolution_clock mainClock;

Expand Down Expand Up @@ -1054,7 +1053,13 @@ int main(int argc, char* argv[]) {

BombData bestBomb = testTwomix(gas1, gas2, gas3, mixt1, mixt2, thirt1, thirt2, optimiseMaximise, optimiseBefore);
cout << "Best:\n" << bestBomb.printExtensive() << endl;
if ((doRetest.length() != 0 && evalOpt(doRetest, false)) || getOpt("Retest and print ticks?", false)) {
bool retest;
if (doRetest.length() == 0) {
retest = getOpt("Retest and print ticks?", false);
} else {
retest = evalOpt(doRetest, false);
}
if (retest) {
reset();
knownInputSetup(gas1, gas2, gas3, bestBomb.fuelTemp, bestBomb.thirTemp, bestBomb.fuelPressure, bestBomb.ratio);
loopPrint();
Expand Down

0 comments on commit 89b54ce

Please sign in to comment.