1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-30 08:24:26 +00:00

Fix for non-adl configuration files.

This commit is contained in:
Con Kolivas 2011-12-24 08:50:07 +11:00
parent 400cb21d8b
commit e75c8ec8de

2
main.c
View File

@ -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 */