From b635f05dce20e85fe4ab92f6e206bf1de805f787 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Wed, 29 Jun 2011 20:29:12 +0200 Subject: [PATCH] Fix writing searchTime in tourneyFile This had to be derived from the variable searchTime, which gives it in seconds, as appData.searchTime (a string in minutes) is not reliable, as it contains the command-line value, which might have been altered through the time-control dialog. --- backend.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backend.c b/backend.c index a1c3c86..15af6e7 100644 --- a/backend.c +++ b/backend.c @@ -9683,7 +9683,7 @@ WriteTourneyFile(char *results) fprintf(f, "-loadPositionIndex %d\n", appData.loadPositionIndex); fprintf(f, "-rewindIndex %d\n", appData.rewindIndex); if(searchTime > 0) - fprintf(f, "-searchTime \"%s\"\n", appData.searchTime); + fprintf(f, "-searchTime \"%d:%02d\"\n", searchTime/60, searchTime%60); else { fprintf(f, "-mps %d\n", appData.movesPerSession); fprintf(f, "-tc %s\n", appData.timeControl); -- 1.7.0.4