]> the.earth.li Git - onak.git/commitdiff
cscvs to tla changeset 69
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:35 +0000 (23:47 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:47:35 +0000 (23:47 +0000)
Author: noodles
Date: 2003/04/19 14:23:46
Move "Find reverse path" to gpgwww so we only get it once.

gpgwww.c
stats.c

index f163ca4eb40e38e0d5ebc8e0590c49de74236af7..cd1c1004f0bf41029b3417975552f1420132e50a 100644 (file)
--- 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 61b527826c95f3b3fbb47fffea06b434d66aab91..a295a1ed231b84e27fd1b363320e28b3cfe662a7 100644 (file)
--- 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++;
        }