Commit 5ece966f07eb00041efebf00e6ec0c33636e2348

Con Kolivas 2012-04-27T12:47:13

Check for submitold before submitstale.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/cgminer.c b/cgminer.c
index a7f27bd..b5de03f 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2086,10 +2086,10 @@ static void *submit_work_thread(void *userdata)
 		int failures = 0;
 
 		if (stale_work(work, true)) {
-			if (opt_submit_stale)
-				applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
-			else if (pool->submit_old)
+			if (pool->submit_old)
 				applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
+			else if (opt_submit_stale)
+				applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
 			else {
 				applog(LOG_NOTICE, "Stale share detected, discarding");
 				sharelog("discard", work);