From a8b85fe447aaf5520ba259ab9eeb86a7f3446763 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 31 May 2004 23:47:43 +0000 Subject: [PATCH 1/1] 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) --- stats.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 @@ -162,11 +162,17 @@ void dofindpath(uint64_t have, uint64_t want, bool html, int count) hashelements(), html ? "
" : ""); 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 ? "
" : ""); + } else { + printf("Can't find any further paths%s\n", + html ? "
" : ""); + } + pathnum = count; } else { printf("%d steps from 0x%08llX to 0x%08llX%s\n", keyinfoa->colour, have & 0xFFFFFFFF, -- 2.39.5