From 5e7e150b12ed82c41eac4dc77f867ab38168267d Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 24 Sep 2012 23:34:10 +1000 Subject: [PATCH] hashmeter fix stats kh/s on 32bit windows --- cgminer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgminer.c b/cgminer.c index 10c92207..6676c8ce 100644 --- a/cgminer.c +++ b/cgminer.c @@ -3821,7 +3821,7 @@ static inline void thread_reportout(struct thr_info *thr) } 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; double secs; @@ -3849,7 +3849,7 @@ static void hashmeter(int thr_id, struct timeval *diff, double thread_rolling = 0.0; 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); /* Rolling average for each thread and each device */