X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=stats.c;h=108b8cc9a778b774a20a0e452df61f65d0a9b55b;hb=061e8cae3c4e66b80d2e71048dd037f0443c82cf;hp=61b527826c95f3b3fbb47fffea06b434d66aab91;hpb=e3ee7975fc8f8b343390272663b8c644030b17c1;p=onak.git diff --git a/stats.c b/stats.c index 61b5278..108b8cc 100644 --- a/stats.c +++ b/stats.c @@ -4,6 +4,8 @@ * Jonathan McDowell * * Copyright 2000-2002 Project Purple + * + * $Id: stats.c,v 1.12 2003/06/08 21:11:01 noodles Exp $ */ #include @@ -75,6 +77,7 @@ unsigned long findpath(struct stats_key *have, struct stats_key *want) * it and add its sigs to the list we want to look at. */ if (!((struct stats_key *)sigs->object)->disabled && + !((struct stats_key *)sigs->object)->revoked && ((struct stats_key *)sigs->object)->colour == 0) { count++; ((struct stats_key *)sigs->object)->colour = @@ -160,11 +163,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 +231,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++; }