1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Use round instead of floor for displayed pool difficulty.

This commit is contained in:
Con Kolivas 2013-10-31 23:28:57 +11:00
parent ac5b12e1a0
commit 7e59ec4f2d

View File

@ -2803,7 +2803,7 @@ static bool submit_upstream_work(struct work *work, CURL *curl, bool resubmit)
err = json_object_get(val, "error"); err = json_object_get(val, "error");
if (!QUIET) { if (!QUIET) {
int intdiff = floor(work->work_difficulty); int intdiff = round(work->work_difficulty);
char diffdisp[16], *outhash; char diffdisp[16], *outhash;
unsigned char rhash[32]; unsigned char rhash[32];