mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-28 15:34:16 +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;
|
||||
|
||||
hash32 = (uint32_t *)(work->hash);
|
||||
intdiff = floor(work->work_difficulty);
|
||||
intdiff = round(work->work_difficulty);
|
||||
suffix_string(work->share_diff, diffdisp, sizeof (diffdisp), 0);
|
||||
snprintf(hashshow, sizeof(hashshow),
|
||||
"%08lx Diff %s/%d%s", (unsigned long)htole32(hash32[6]), diffdisp, intdiff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user