1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-02 10:04:33 +00:00

Add last share's pool info in cgpu_info

This commit is contained in:
Kano 2012-02-04 17:49:49 +11:00
parent 53c1e9ae37
commit 0ebc0c9d8a
2 changed files with 4 additions and 0 deletions

View File

@ -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) {

View File

@ -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