Browse Source

Add last share's pool info in cgpu_info

nfactor-troky
Kano 13 years ago
parent
commit
0ebc0c9d8a
  1. 2
      cgminer.c
  2. 2
      miner.h

2
cgminer.c

@ -1422,6 +1422,8 @@ static bool submit_upstream_work(const struct work *work) @@ -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) {

2
miner.h

@ -292,6 +292,8 @@ struct cgpu_info { @@ -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

Loading…
Cancel
Save