From: Jonathan McDowell <noodles@earth.li>
Date: Mon, 31 May 2004 23:47:43 +0000 (+0000)
Subject: cscvs to tla changeset 79
X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/a8b85fe447aaf5520ba259ab9eeb86a7f3446763

cscvs to tla changeset 79
Author: noodles
Date: 2003/06/04 22:32:56
Tidy up empty pathfinder paths when searching for multiple paths. (Patch from
Simon Huggins)
---

diff --git a/stats.c b/stats.c
index 7f241ee..6a61879 100644
--- a/stats.c
+++ b/stats.c
@@ -5,7 +5,7 @@
  *
  * Copyright 2000-2002 Project Purple
  *
- * $Id: stats.c,v 1.10 2003/06/04 20:57:13 noodles Exp $
+ * $Id: stats.c,v 1.11 2003/06/04 22:32:56 noodles Exp $
  */
 
 #include <stdio.h>
@@ -162,11 +162,17 @@ void dofindpath(uint64_t have, uint64_t want, bool html, int count)
 			hashelements(),
 			html ? "<BR>" : "");
 		if (keyinfoa->colour == 0) {
-			printf("Can't find a link from 0x%08llX to 0x%08llX"
-				"%s\n",
+			if (pathnum == 0) {
+				printf("Can't find a link from 0x%08llX to "
+				"0x%08llX%s\n",
 				have,
 				want,
 				html ? "<BR>" : "");
+			} else {
+				printf("Can't find any further paths%s\n",
+					html ? "<BR>" : "");
+			}
+			pathnum = count;
 		} else {
 			printf("%d steps from 0x%08llX to 0x%08llX%s\n",
 				keyinfoa->colour, have & 0xFFFFFFFF,