From: Jonathan McDowell <noodles@earth.li>
Date: Mon, 31 May 2004 23:47:35 +0000 (+0000)
Subject: cscvs to tla changeset 69
X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/49ce386ea134b5f0c35c6d087cf22b1673431366?ds=sidebyside

cscvs to tla changeset 69
Author: noodles
Date: 2003/04/19 14:23:46
Move "Find reverse path" to gpgwww so we only get it once.
---

diff --git a/gpgwww.c b/gpgwww.c
index f163ca4..cd1c100 100644
--- a/gpgwww.c
+++ b/gpgwww.c
@@ -54,7 +54,12 @@ int main(int argc, char *argv[])
 		exit(1);
 	}
 
-	printf("<P>Looking for path from 0x%llX to 0x%llX</P>\n", from, to);
+	printf("<P>Looking for path from 0x%llX to 0x%llX.\n", from, to);
+	printf("<A HREF=\"gpgwww?from=0x%08llX&to=0x%08llX\">"
+			"Find reverse path</A></P>\n",
+			to,
+			from);
+
 	readconfig();
 	initlogthing("gpgwww", config.logfile);
 	initdb();
diff --git a/stats.c b/stats.c
index 61b5278..a295a1e 100644
--- a/stats.c
+++ b/stats.c
@@ -222,13 +222,6 @@ void dofindpath(uint64_t have, uint64_t want, bool html, int count)
 				curkey = findinhash(curkey->parent);
 			}
 			putchar('\n');
-			if (html) {
-				printf("<BR><A HREF=\"gpgwww?from=0x%08llX&"
-					"to=0x%08llX\">"
-					"Find reverse path</A>\n",
-					want,
-					have);
-			}
 		}
 		pathnum++;
 	}