Commit e4638aa9860319bf015b645a1840930b9f9e9b75

Chris Savery 2013-08-16T12:47:04

update firmware for 16 chips, add dist files

diff --git a/cgminer/driver-klondike.c b/cgminer/driver-klondike.c
index 351fcb3..5ef2fb5 100644
--- a/cgminer/driver-klondike.c
+++ b/cgminer/driver-klondike.c
@@ -567,7 +567,7 @@ static struct api_data *klondike_api_stats(struct cgpu_info *klncgpu)
 		sprintf(buf, "Temp %d", dev);
 		root = api_add_temp(root, buf, &fTemp, true);
 	
-		double dClk = (double)klninfo->cfg[dev].hashclock / 2;
+		double dClk = (double)klninfo->cfg[dev].hashclock;
 		sprintf(buf, "Clock %d", dev);
 		root = api_add_freq(root, buf, &dClk, true);
 		
@@ -582,18 +582,18 @@ static struct api_data *klondike_api_stats(struct cgpu_info *klncgpu)
 		root = api_add_int(root, buf, &iFan, true);
 		
 		if(klninfo->devinfo[dev].chipstats != NULL) {
-			char data[80];
+			char data[128];
 			int n;
 			sprintf(buf, "Nonces / Chip %d", dev);
 			for(n = 0; n < klninfo->status[dev].chipcount; n++)
-				sprintf(data+n*5, "%04d ", klninfo->devinfo[dev].chipstats[n]);
-			data[79] = 0;
+				sprintf(data+n*8, "%07d ", klninfo->devinfo[dev].chipstats[n]);
+			data[127] = 0;
 			root = api_add_string(root, buf, data, true);
 		
 			sprintf(buf, "Errors / Chip %d", dev);
 			for(n = 0; n < klninfo->status[dev].chipcount; n++)
-				sprintf(data+n*5, "%04d ", klninfo->devinfo[dev].chipstats[n + klninfo->status[dev].chipcount]);
-			data[79] = 0;
+				sprintf(data+n*8, "%07d ", klninfo->devinfo[dev].chipstats[n + klninfo->status[dev].chipcount]);
+			data[127] = 0;
 			root = api_add_string(root, buf, data, true);
 		}
 	}