Browse Source

Merge commit '18cc564' into bfgminer

Luke Dashjr 12 years ago
parent
commit
fe50d9783d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      miner.c

+ 7 - 0
miner.c

@@ -5956,6 +5956,13 @@ void write_config(FILE *fcfg)
 	}
 	}
 
 
 	/* Special case options */
 	/* Special case options */
+	if (request_target_str)
+	{
+		if (request_pdiff == (long)request_pdiff)
+			fprintf(fcfg, ",\n\"request-diff\" : %ld", (long)request_pdiff);
+		else
+			fprintf(fcfg, ",\n\"request-diff\" : %f", request_pdiff);
+	}
 	fprintf(fcfg, ",\n\"shares\" : \"%d\"", opt_shares);
 	fprintf(fcfg, ",\n\"shares\" : \"%d\"", opt_shares);
 	if (pool_strategy == POOL_BALANCE)
 	if (pool_strategy == POOL_BALANCE)
 		fputs(",\n\"balance\" : true", fcfg);
 		fputs(",\n\"balance\" : true", fcfg);