1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 23:37:54 +00:00

Merge pull request #314 from kanoi/main

hashmeter fix stats kh/s on 32bit windows
This commit is contained in:
Con Kolivas 2012-10-05 21:36:39 -07:00
commit 53658fbbeb

View File

@ -3821,7 +3821,7 @@ static inline void thread_reportout(struct thr_info *thr)
} }
static void hashmeter(int thr_id, struct timeval *diff, static void hashmeter(int thr_id, struct timeval *diff,
unsigned long long hashes_done) uint64_t hashes_done)
{ {
struct timeval temp_tv_end, total_diff; struct timeval temp_tv_end, total_diff;
double secs; double secs;
@ -3849,7 +3849,7 @@ static void hashmeter(int thr_id, struct timeval *diff,
double thread_rolling = 0.0; double thread_rolling = 0.0;
int i; int i;
applog(LOG_DEBUG, "[thread %d: %llu hashes, %.1f khash/sec]", applog(LOG_DEBUG, "[thread %d: %"PRIu64" hashes, %.1f khash/sec]",
thr_id, hashes_done, hashes_done / 1000 / secs); thr_id, hashes_done, hashes_done / 1000 / secs);
/* Rolling average for each thread and each device */ /* Rolling average for each thread and each device */