X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/e3ee7975fc8f8b343390272663b8c644030b17c1..cbd86744c2245a16a75c230733db23960cf19631:/stats.c?ds=sidebyside diff --git a/stats.c b/stats.c index 61b5278..6a61879 100644 --- a/stats.c +++ b/stats.c @@ -4,6 +4,8 @@ * Jonathan McDowell * * Copyright 2000-2002 Project Purple + * + * $Id: stats.c,v 1.11 2003/06/04 22:32:56 noodles Exp $ */ #include @@ -160,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, @@ -222,13 +230,6 @@ void dofindpath(uint64_t have, uint64_t want, bool html, int count) curkey = findinhash(curkey->parent); } putchar('\n'); - if (html) { - printf("
" - "Find reverse path\n", - want, - have); - } } pathnum++; }