Browse Source

bitfury: Report correct hashrate for gen2 chips

Luke Dashjr 11 years ago
parent
commit
61a2b9aacb
1 changed files with 12 additions and 2 deletions
  1. 12 2
      driver-bitfury.c

+ 12 - 2
driver-bitfury.c

@@ -670,8 +670,18 @@ out:
 
 
 int64_t bitfury_job_process_results(struct thr_info *thr, struct work *work, bool stopping)
 int64_t bitfury_job_process_results(struct thr_info *thr, struct work *work, bool stopping)
 {
 {
-	// Bitfury chips process only 768/1024 of the nonce range
-	return 0xbd000000;
+	struct cgpu_info * const proc = thr->cgpu;
+	struct bitfury_device * const bitfury = proc->device_data;
+	switch (bitfury->chipgen)
+	{
+		default:
+		case 1:
+			// Bitfury gen1 chips process only 756/1024 of the nonce range
+			return 0xbd000000;
+		case 2:
+			// Bitfury gen2 chips process only 864/1024 of the nonce range
+			return 0xd8000000;
+	}
 }
 }
 
 
 struct api_data *bitfury_api_device_detail(struct cgpu_info * const cgpu)
 struct api_data *bitfury_api_device_detail(struct cgpu_info * const cgpu)