Browse Source

x6500: Since we program in about a minute now, only report status verbosely every 25%

Luke Dashjr 13 years ago
parent
commit
6ab9775a27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-x6500.c

+ 2 - 2
driver-x6500.c

@@ -242,7 +242,7 @@ x6500_fpga_upload_bitstream(struct cgpu_info *x6500, struct jtag_port *jp1)
 	jp->a->async = true;
 
 	ssize_t buflen;
-	char nextstatus = 10;
+	char nextstatus = 25;
 	while (len) {
 		buflen = len < 32 ? len : 32;
 		if (fread(buf, buflen, 1, f) != 1)
@@ -251,7 +251,7 @@ x6500_fpga_upload_bitstream(struct cgpu_info *x6500, struct jtag_port *jp1)
 		*pdone = 100 - ((len * 100) / flen);
 		if (*pdone >= nextstatus)
 		{
-			nextstatus += 10;
+			nextstatus += 25;
 			applog(LOG_WARNING, "%s %u: Programming %s... %d%% complete...", x6500->api->name, x6500->device_id, x6500->device_path, *pdone);
 		}
 		len -= buflen;