Browse Source

Move difficulties to end of share result message, so they can be made to line up nicely

Luke Dashjr 13 years ago
parent
commit
23a793ea6e
2 changed files with 7 additions and 7 deletions
  1. 5 5
      README
  2. 2 2
      miner.c

+ 5 - 5
README

@@ -402,12 +402,12 @@ Or press any other key to continue
 
 
 The running log shows output like this:
 The running log shows output like this:
 
 
- [2012-10-12 18:02:20] Accepted f0c05469 Diff 1/1 GPU 0 pool 1
- [2012-10-12 18:02:22] Accepted 218ac982 Diff 7/1 GPU 1 pool 1
- [2012-10-12 18:02:23] Accepted d8300795 Diff 1/1 GPU 3 pool 1
- [2012-10-12 18:02:24] Accepted 122c1ff1 Diff 14/1 GPU 1 pool 1
+ [2013-02-13 00:26:30] Accepted 1758e8df BFL 0  pool 0 Diff 10/1
+ [2013-02-13 00:26:32] Accepted 1d9a2199 MMQ 0a pool 0 Diff 8/1
+ [2013-02-13 00:26:33] Accepted b1304924 ZTX 0  pool 0 Diff 1/1
+ [2013-02-13 00:26:33] Accepted c3ad22f4 XBS 0b pool 0 Diff 1/1
 
 
-The 8 byte hex value are the 2nd 8 bytes of the share being submitted to the
+The 8 byte hex value are the 2nd set of 32 bits from the share submitted to the
 pool. The 2 diff values are the actual difficulty target that share reached
 pool. The 2 diff values are the actual difficulty target that share reached
 followed by the difficulty target the pool is currently asking for.
 followed by the difficulty target the pool is currently asking for.
 
 

+ 2 - 2
miner.c

@@ -2605,12 +2605,12 @@ void share_result_msg(const struct work *work, const char *disp, const char *rea
 	else
 	else
 		where[0] = '\0';
 		where[0] = '\0';
 	
 	
-	applog(LOG_NOTICE, "%s %02x%02x%02x%02x Diff %s/%s %"PRIpreprv"%s%s %s%s",
+	applog(LOG_NOTICE, "%s %02x%02x%02x%02x %"PRIprepr"%s Diff %s/%s%s %s%s",
 	       disp,
 	       disp,
 	       (unsigned)hashpart[3], (unsigned)hashpart[2], (unsigned)hashpart[1], (unsigned)hashpart[0],
 	       (unsigned)hashpart[3], (unsigned)hashpart[2], (unsigned)hashpart[1], (unsigned)hashpart[0],
-	       shrdiffdisp, tgtdiffdisp,
 	       cgpu->proc_repr,
 	       cgpu->proc_repr,
 	       where,
 	       where,
+	       shrdiffdisp, tgtdiffdisp,
 	       reason,
 	       reason,
 	       resubmit ? "(resubmit)" : "",
 	       resubmit ? "(resubmit)" : "",
 	       worktime
 	       worktime