Browse Source

bifury: Update for "job" protocol change

Luke Dashjr 12 years ago
parent
commit
0cfceac9cf
1 changed files with 2 additions and 1 deletions
  1. 2 1
      driver-bifury.c

+ 2 - 1
driver-bifury.c

@@ -345,8 +345,9 @@ void bifury_handle_cmd(struct cgpu_info * const dev, const char * const cmd)
 	else
 	else
 	if (!strncmp(cmd, "job ", 4))
 	if (!strncmp(cmd, "job ", 4))
 	{
 	{
-		// job <jobid> <chip>
+		// job <jobid> <timestamp> <chip>
 		const uint32_t jobid = strtoll(&cmd[4], &p, 0x10);
 		const uint32_t jobid = strtoll(&cmd[4], &p, 0x10);
+		strtoll(&p[1], &p, 0x10);
 		const int chip = atoi(&p[1]);
 		const int chip = atoi(&p[1]);
 		const struct cgpu_info * const proc = device_proc_by_id(dev, chip);
 		const struct cgpu_info * const proc = device_proc_by_id(dev, chip);
 		thr = proc->thr[0];
 		thr = proc->thr[0];