Commit 25fd6cd0fd572ebef5e5918e85a868841db3cbfa

Con Kolivas 2012-08-05T15:35:37

Correct writing of scrypt parameters to config file based on command line parameters only.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cgminer.c b/cgminer.c
index 0504027..c78e46f 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2948,11 +2948,11 @@ void write_config(FILE *fcfg)
 		fputs("\",\n\"lookup-gap\" : \"", fcfg);
 		for(i = 0; i < nDevs; i++)
 			fprintf(fcfg, "%s%d", i > 0 ? "," : "",
-				(int)gpus[i].lookup_gap);
+				(int)gpus[i].opt_lg);
 		fputs("\",\n\"thread-concurrency\" : \"", fcfg);
 		for(i = 0; i < nDevs; i++)
 			fprintf(fcfg, "%s%d", i > 0 ? "," : "",
-				(int)gpus[i].thread_concurrency);
+				(int)gpus[i].opt_tc);
 		fputs("\",\n\"shaders\" : \"", fcfg);
 		for(i = 0; i < nDevs; i++)
 			fprintf(fcfg, "%s%d", i > 0 ? "," : "",