add share counter
This commit is contained in:
parent
14f4efce72
commit
2028613c4c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user