mirror of
https://github.com/GOSTSec/ccminer
synced 2025-09-05 10:42:14 +00:00
stats: fix typo for multigpu
This commit is contained in:
parent
15eea1bc81
commit
dedcd06207
@ -37,7 +37,7 @@ extern int device_map[8];
|
|||||||
*/
|
*/
|
||||||
extern "C" void stats_remember_speed(int thr_id, uint32_t hashcount, double hashrate)
|
extern "C" void stats_remember_speed(int thr_id, uint32_t hashcount, double hashrate)
|
||||||
{
|
{
|
||||||
uint64_t thr = (0xff && thr_id);
|
uint64_t thr = (0xff & thr_id);
|
||||||
uint64_t key = (thr << 56) + (uid++ % UINT_MAX);
|
uint64_t key = (thr << 56) + (uid++ % UINT_MAX);
|
||||||
stats_data data;
|
stats_data data;
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ extern "C" void stats_remember_speed(int thr_id, uint32_t hashcount, double hash
|
|||||||
*/
|
*/
|
||||||
extern "C" double stats_get_speed(int thr_id)
|
extern "C" double stats_get_speed(int thr_id)
|
||||||
{
|
{
|
||||||
uint64_t thr = (0xff && thr_id);
|
uint64_t thr = (0xff & thr_id);
|
||||||
uint64_t keypfx = (thr << 56);
|
uint64_t keypfx = (thr << 56);
|
||||||
uint64_t keymsk = (0xffULL << 56);
|
uint64_t keymsk = (0xffULL << 56);
|
||||||
double speed = 0.0;
|
double speed = 0.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user