1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 23:37:54 +00:00

Merge branch 'master' of git@github.com:pshep/cgminer.git

This commit is contained in:
Paul Sheppard 2012-05-18 17:43:03 -07:00
commit 9bb1a3c0a8

View File

@ -2623,7 +2623,7 @@ void write_config(FILE *fcfg)
/* Write pool values in priority order */
fputs("{\n\"pools\" : [", fcfg);
while(j < total_pools) {
while((j < total_pools) && (i < total_pools)) {
if(pools[i]->prio == j) {
fprintf(fcfg, "%s\n\t{\n\t\t\"url\" : \"%s\",", i > 0 ? "," : "", pools[i]->rpc_url);
fprintf(fcfg, "\n\t\t\"user\" : \"%s\",", pools[i]->rpc_user);