I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 656202c9 authored by zzz's avatar zzz
Browse files

debug tweak

parent 72b64072
No related branches found
No related tags found
No related merge requests found
...@@ -225,9 +225,10 @@ public class NetDbRenderer { ...@@ -225,9 +225,10 @@ public class NetDbRenderer {
double log2 = biLog2(median); double log2 = biLog2(median);
buf.append("</b></p><p><b>Median distance (bits): ").append(fmt.format(log2)); buf.append("</b></p><p><b>Median distance (bits): ").append(fmt.format(log2));
// 2 for 4 floodfills... -1 for median // 2 for 4 floodfills... -1 for median
// this can be way off for unknown reasons
int total = (int) Math.round(Math.pow(2, 2 + 256 - 1 - log2)); int total = (int) Math.round(Math.pow(2, 2 + 256 - 1 - log2));
buf.append("</b></p><p><b>Estimated total floodfills: ").append(total); buf.append("</b></p><p><b>Estimated total floodfills: ").append(total);
buf.append("</b></p><p><b>Estimated total leasesets: ").append(total * rapCount / 8); buf.append("</b></p><p><b>Estimated total leasesets: ").append(total * rapCount / 4);
} else { } else {
buf.append("</b></p><p><b>Not floodfill or no data"); buf.append("</b></p><p><b>Not floodfill or no data");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment