@@ -1422,6 +1422,8 @@ static bool submit_upstream_work(const struct work *work)
cgpu->accepted++;
total_accepted++;
pool->accepted++;
+ cgpu->last_share_pool = pool->pool_no;
+ cgpu->last_share_pool_time = time(NULL);
if (opt_debug)
applog(LOG_DEBUG, "PROOF OF WORK RESULT: true (yay!!!)");
if (!QUIET) {
@@ -292,6 +292,8 @@ struct cgpu_info {
int gpu_powertune;
float gpu_vddc;
#endif
+ int last_share_pool;
+ time_t last_share_pool_time;
};
#ifndef WIN32