1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 15:27:53 +00:00

Display share difficulty on log with a shortened hash display on submission.

This commit is contained in:
Con Kolivas 2012-09-24 14:08:35 +10:00
parent a63ecf63f0
commit 823a710a54

View File

@ -1818,7 +1818,9 @@ static bool submit_upstream_work(const struct work *work, CURL *curl, bool resub
if (opt_scrypt) if (opt_scrypt)
sprintf(hashshow, "%08lx.%08lx", (unsigned long)(hash32[7]), (unsigned long)(hash32[6])); sprintf(hashshow, "%08lx.%08lx", (unsigned long)(hash32[7]), (unsigned long)(hash32[6]));
else { else {
sprintf(hashshow, "%08lx.%08lx%s", (unsigned long)(hash32[6]), (unsigned long)(hash32[5]), int intdiff = round(work->work_difficulty);
sprintf(hashshow, "%08lx Diff %d%s", (unsigned long)(hash32[6]), intdiff,
work->block? " BLOCK!" : ""); work->block? " BLOCK!" : "");
} }