From dedcd0620712936c951ad90ff9d6b0e7f22bff7a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 13 Nov 2014 19:50:58 +0100 Subject: [PATCH] stats: fix typo for multigpu --- stats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats.cpp b/stats.cpp index fd4c772..a47c067 100644 --- a/stats.cpp +++ b/stats.cpp @@ -37,7 +37,7 @@ extern int device_map[8]; */ 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); 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) { - uint64_t thr = (0xff && thr_id); + uint64_t thr = (0xff & thr_id); uint64_t keypfx = (thr << 56); uint64_t keymsk = (0xffULL << 56); double speed = 0.0;