From 2028613c4cba1bf68fa97d2b523771ceaaad6dbf Mon Sep 17 00:00:00 2001 From: WantClue Date: Sat, 26 Oct 2024 13:10:09 +0200 Subject: [PATCH] add share counter --- src/mining_nerdnos.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mining_nerdnos.cpp b/src/mining_nerdnos.cpp index cade337..e4737cb 100644 --- a/src/mining_nerdnos.cpp +++ b/src/mining_nerdnos.cpp @@ -29,6 +29,8 @@ extern pthread_mutex_t job_mutex; extern double best_diff; extern unsigned long mLastTXtoPool; +extern uint32_t shares; +extern uint32_t valids; // we can have 32 different job ids #define ASIC_JOB_COUNT 32 @@ -98,6 +100,9 @@ static void calculate_hashrate(history_t *history, uint32_t diff) { } history->newest++; + + // Increment the global shares counter + shares++; } // triggers the job creation