mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-09 13:34:18 +00:00
Fix displayed diff when solo mining at >2^32 diff.
This commit is contained in:
parent
aeaedeff12
commit
dc767487e2
@ -2935,7 +2935,7 @@ static void calc_diff(struct work *work, double known)
|
||||
{
|
||||
struct sgminer_pool_stats *pool_stats = &(work->pool->sgminer_pool_stats);
|
||||
double difficulty;
|
||||
int intdiff;
|
||||
uint64_t uintdiff;
|
||||
|
||||
if (known)
|
||||
work->work_difficulty = known;
|
||||
@ -2952,8 +2952,8 @@ static void calc_diff(struct work *work, double known)
|
||||
difficulty = work->work_difficulty;
|
||||
|
||||
pool_stats->last_diff = difficulty;
|
||||
intdiff = round(difficulty);
|
||||
suffix_string(intdiff, work->pool->diff, sizeof(work->pool->diff), 0);
|
||||
uintdiff = round(difficulty);
|
||||
suffix_string(uintdiff, work->pool->diff, sizeof(work->pool->diff), 0);
|
||||
|
||||
if (difficulty == pool_stats->min_diff)
|
||||
pool_stats->min_diff_count++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user