From: kostas <>
Date: Thu, 11 Dec 1997 04:53:15 +0000 (+0000)
Subject: Aesthetically improved urn:menu.* using tables
X-Git-Tag: SQUID_3_0_PRE1~4358
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e141322c1ea55f9eb788b7cb782c22c5042befe;p=thirdparty%2Fsquid.git
Aesthetically improved urn:menu.* using tables
---
diff --git a/src/urn.cc b/src/urn.cc
index b329c85daa..aca9f90129 100644
--- a/src/urn.cc
+++ b/src/urn.cc
@@ -212,22 +212,21 @@ urnHandleReply(void *data, char *buf, ssize_t size)
l = snprintf(line, 4096,
"
Select URL for %s\n"
"Select URL for %s
\n"
- "\n", storeUrl(e), storeUrl(e));
+ "\n", storeUrl(e), storeUrl(e));
stringAppend(S, line, l);
for (w = urls; w; w = w->next) {
request_t *tmpr=urlParse(urnState->request->method, w->key);
const cache_key *tmpk=storeKeyPublic(w->key,urnState->request->method);
tmpentry=storeGet(tmpk);
- l = snprintf(line, 4096, "- %s", w->key, w->key);
if (tmpr && tmpr->host && (tmprtt=netdbHostRtt(tmpr->host)))
- l= snprintf(line, 4096, "
- %s %4.2f %s\n",
- w->key,w->key,tmprtt, tmpentry?"[cached]":" " );
+ l= snprintf(line, 4096, "
%s | %4.0f ms | %s |
\n",
+ w->key,w->key,tmprtt, tmpentry?" [cached]":" " );
else
- l = snprintf(line, 4096, " - %s", w->key, w->key);
+ l = snprintf(line, 4096, "
%s |
", w->key, w->key);
stringAppend(S, line, l);
}
l = snprintf(line, 4096,
- ""
+ "
"
"
\n"
"
\n"
"Generated by %s/%s@%s\n"