mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-30 00:14:26 +00:00
Use round for stratum share diff display instead of floor.
This commit is contained in:
parent
7e59ec4f2d
commit
eb73897ade
@ -5161,7 +5161,7 @@ static void stratum_share_result(json_t *val, json_t *res_val, json_t *err_val,
|
|||||||
int intdiff;
|
int intdiff;
|
||||||
|
|
||||||
hash32 = (uint32_t *)(work->hash);
|
hash32 = (uint32_t *)(work->hash);
|
||||||
intdiff = floor(work->work_difficulty);
|
intdiff = round(work->work_difficulty);
|
||||||
suffix_string(work->share_diff, diffdisp, sizeof (diffdisp), 0);
|
suffix_string(work->share_diff, diffdisp, sizeof (diffdisp), 0);
|
||||||
snprintf(hashshow, sizeof(hashshow),
|
snprintf(hashshow, sizeof(hashshow),
|
||||||
"%08lx Diff %s/%d%s", (unsigned long)htole32(hash32[6]), diffdisp, intdiff,
|
"%08lx Diff %s/%d%s", (unsigned long)htole32(hash32[6]), diffdisp, intdiff,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user