Browse Source

Fix for non-adl configuration files.

nfactor-troky
Con Kolivas 13 years ago
parent
commit
e75c8ec8de
  1. 2
      main.c

2
main.c

@ -3125,8 +3125,8 @@ static void write_config(FILE *fcfg)
fputs("\",\n\"temp-target\" : \"", fcfg); fputs("\",\n\"temp-target\" : \"", fcfg);
for(i = 0; i < nDevs; i++) for(i = 0; i < nDevs; i++)
fprintf(fcfg, "%s%d", i > 0 ? "," : "", gpus[i].adl.targettemp); fprintf(fcfg, "%s%d", i > 0 ? "," : "", gpus[i].adl.targettemp);
fputs("\",\n", fcfg);
#endif #endif
fputs("\",\n", fcfg);
fprintf(fcfg, "\n\"algo\" : \"%s\"", algo_names[opt_algo]); fprintf(fcfg, "\n\"algo\" : \"%s\"", algo_names[opt_algo]);
/* Simple bool and int options */ /* Simple bool and int options */

Loading…
Cancel
Save