mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
'llround' is more suitable here than 'roundl'
This commit is contained in:
parent
1e51336f95
commit
14d20837b3
@ -5110,7 +5110,7 @@ static void hashmeter(int thr_id, struct timeval *diff,
|
|||||||
|
|
||||||
local_secs = (double)total_diff.tv_sec + ((double)total_diff.tv_usec / 1000000.0);
|
local_secs = (double)total_diff.tv_sec + ((double)total_diff.tv_usec / 1000000.0);
|
||||||
decay_time(&total_rolling, local_mhashes_done / local_secs, local_secs);
|
decay_time(&total_rolling, local_mhashes_done / local_secs, local_secs);
|
||||||
global_hashrate = roundl(total_rolling) * 1000000;
|
global_hashrate = llround(total_rolling) * 1000000;
|
||||||
|
|
||||||
timersub(&total_tv_end, &total_tv_start, &total_diff);
|
timersub(&total_tv_end, &total_tv_start, &total_diff);
|
||||||
total_secs = (double)total_diff.tv_sec +
|
total_secs = (double)total_diff.tv_sec +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user