Browse Source

Merge commit 'd7db1e8' into cg_merges_20131108a

Luke Dashjr 12 years ago
parent
commit
12436877ac
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-klondike.c

+ 2 - 1
driver-klondike.c

@@ -619,10 +619,11 @@ static int64_t klondike_scanwork(struct thr_info *thr)
 			newhashdev += klninfo->status[dev].hashcount - klninfo->devinfo[dev].lasthashcount;
 			klninfo->devinfo[dev].lasthashcount = klninfo->status[dev].hashcount;
 			klninfo->hashcount += (newhashdev << 32) / klninfo->status[dev].maxcount;
-			newhashcount += 0xffffffffull * (uint64_t)klninfo->noncecount;
 			
 			// todo: check stats for critical conditions
 		}
+		newhashcount += 0xffffffffull * (uint64_t)klninfo->noncecount;
+		klninfo->noncecount = 0;
 		rd_unlock(&(klninfo->stat_lock));
 	}
 	return newhashcount;