projects
/
crypto.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
80fbadb
)
Changed reliability table format.
author
Pekka Riikonen
<priikone@silcnet.org>
Mon, 17 Nov 2003 13:58:36 +0000
(13:58 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Mon, 17 Nov 2003 13:58:36 +0000
(13:58 +0000)
apps/silcmap/silcmap_html.c
patch
|
blob
|
history
diff --git
a/apps/silcmap/silcmap_html.c
b/apps/silcmap/silcmap_html.c
index 5c1aa233aac54f15d8a31dcec618450cb290655c..bc350c6b86e50b59523d1a2e40961c436911e606 100644
(file)
--- a/
apps/silcmap/silcmap_html.c
+++ b/
apps/silcmap/silcmap_html.c
@@
-546,7
+546,7
@@
bool silc_map_writerelhtml(SilcMap map)
/* Count the reliability */
if (try)
/* Count the reliability */
if (try)
- rel = ((double)success / (double)try) * (double)
20
0.0;
+ rel = ((double)success / (double)try) * (double)
19
0.0;
fprintf(fp, "<tr>\n");
if (mapconn->html_url)
fprintf(fp, "<tr>\n");
if (mapconn->html_url)
@@
-556,15
+556,15
@@
bool silc_map_writerelhtml(SilcMap map)
fprintf(fp,
"<td align = \"center\" class=\"%s\"> <a href=\"%s_%d.html\">%s</a></td>\n", class, hostname, mapconn->port, hostname);
fprintf(fp,
fprintf(fp,
"<td align = \"center\" class=\"%s\"> <a href=\"%s_%d.html\">%s</a></td>\n", class, hostname, mapconn->port, hostname);
fprintf(fp,
- "<td class=\"%s\" width=\"
20
0\">"
- "<table style=\"border: solid 1px black; width:
20
0px;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"%s\"><tr>"
+ "<td class=\"%s\" width=\"
19
0\">"
+ "<table style=\"border: solid 1px black; width:
19
0px;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"%s\"><tr>"
"<td style=\"width: %fpx; height: 10px;\" bgcolor=\"gray\"></td>"
"<td style=\"width: %fpx; height: 10px;\" bgcolor=\"white\"></td>"
"</tr></table></td>\n"
"<td style=\"width: %fpx; height: 10px;\" bgcolor=\"gray\"></td>"
"<td style=\"width: %fpx; height: 10px;\" bgcolor=\"white\"></td>"
"</tr></table></td>\n"
- "<td class=\"%s\">%.2f%%</td>\n"
+ "<td class=\"%s\">%.2f%%
- score: %d
</td>\n"
"</tr>\n",
"</tr>\n",
- class, class, rel,
20
0 - rel, class,
- ((double)success / (double)try) * (double)100.0);
+ class, class, rel,
19
0 - rel, class,
+ ((double)success / (double)try) * (double)100.0
, success
);
}
fprintf(fp, "</table><br />\n");
}
fprintf(fp, "</table><br />\n");