Commit e75c8ec8de20820c17e4d22b1bad8f4b64c007ec

Con Kolivas 2011-12-24T08:50:07

Fix for non-adl configuration files.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/main.c b/main.c
index fab46ef..54607dc 100644
--- a/main.c
+++ b/main.c
@@ -3125,8 +3125,8 @@ static void write_config(FILE *fcfg)
 	fputs("\",\n\"temp-target\" : \"", fcfg);
 	for(i = 0; i < nDevs; i++)
 		fprintf(fcfg, "%s%d", i > 0 ? "," : "", gpus[i].adl.targettemp);
-	fputs("\",\n", fcfg);
 #endif
+	fputs("\",\n", fcfg);
 	fprintf(fcfg, "\n\"algo\" : \"%s\"", algo_names[opt_algo]);
 	
 	/* Simple bool and int options */