diff options
| author | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-06-10 20:25:33 +0000 |
|---|---|---|
| committer | orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2007-06-10 20:25:33 +0000 |
| commit | 5fd1d5a58efbe2ea26162d6306db74485a36c421 (patch) | |
| tree | e58967175ef6e7033c15776374354a83faabaa40 | |
| parent | e07458bad4901580587fd57f448162fbecd0e3a9 (diff) | |
added time configuration
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3853 6c8d7289-2bf4-0310-a012-ef5d649a1542
| -rw-r--r-- | htroot/WatchWebStructure_p.html | 6 | ||||
| -rw-r--r-- | htroot/WatchWebStructure_p.java | 12 | ||||
| -rw-r--r-- | htroot/WebStructurePicture_p.java | 3 | ||||
| -rw-r--r-- | htroot/env/templates/submenuCrawler.template | 2 |
4 files changed, 15 insertions, 8 deletions
diff --git a/htroot/WatchWebStructure_p.html b/htroot/WatchWebStructure_p.html index a67797766..cb4559aa5 100644 --- a/htroot/WatchWebStructure_p.html +++ b/htroot/WatchWebStructure_p.html @@ -42,6 +42,12 @@ <input type="text" name="nodes" value="#[nodes]#" size="4" maxlength="4" /> <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depth]#&width=#[width]#&height=#[height]#&nodes=#[nodesi]#&time=#[time]#"><img src="env/grafics/plus.gif" /></a> </dd> + <dt>time</dt> + <dd> + <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depth]#&width=#[width]#&height=#[height]#&nodes=#[nodes]#&time=#[timed]#"><img src="env/grafics/minus.gif" /></a> + <input type="text" name="time" value="#[time]#" size="4" maxlength="4" /> + <a href="WatchWebStructure_p.html?host=#[host]#&depth=#[depth]#&width=#[width]#&height=#[height]#&nodes=#[nodes]#&time=#[timei]#"><img src="env/grafics/plus.gif" /></a> + </dd> <dt>size</dt> <dd><input type="text" name="width" value="#[width]#" size="4" maxlength="4" /> x <input type="text" name="height" value="#[height]#" size="4" maxlength="4" /></dd> <dt> </dt> diff --git a/htroot/WatchWebStructure_p.java b/htroot/WatchWebStructure_p.java index 48c75a5df..c0aace1d2 100644 --- a/htroot/WatchWebStructure_p.java +++ b/htroot/WatchWebStructure_p.java @@ -16,7 +16,7 @@ public class WatchWebStructure_p { int width = 768; int height = 576; int depth = 3; - int nodes = 100; // maximum number of host nodes that are painted + int nodes = 1000; // maximum number of host nodes that are painted int time = -1; String host = "auto"; @@ -49,12 +49,14 @@ public class WatchWebStructure_p { prop.put("depth", depth); prop.put("depthi", Math.min(8, depth + 1)); prop.put("depthd", Math.max(0, depth - 1)); - prop.put("width", width); - prop.put("height", height); prop.put("nodes", nodes); + prop.put("nodesi", Math.min(1000, nodes + 100)); + prop.put("nodesd", Math.max(100, nodes - 100)); prop.put("time", time); - prop.put("nodesi", Math.min(1000, nodes + 50)); - prop.put("nodesd", Math.max(0, nodes - 50)); + prop.put("timei", (time > 9000) ? -1 : ((time < 0) ? -1 : Math.min(9999, time + 1000))); + prop.put("timed", (time < 0) ? 9000 : Math.max(1000, time - 1000)); + prop.put("width", width); + prop.put("height", height); return prop; } diff --git a/htroot/WebStructurePicture_p.java b/htroot/WebStructurePicture_p.java index cdbba77fe..06b4cba06 100644 --- a/htroot/WebStructurePicture_p.java +++ b/htroot/WebStructurePicture_p.java @@ -72,7 +72,7 @@ public class WebStructurePicture_p { if (depth < 0) depth = 0; // calculate target time - long timeout = (time < 0) ? Long.MAX_VALUE : System.currentTimeMillis() + time; + long timeout = (time < 0) ? Long.MAX_VALUE : System.currentTimeMillis() + (time * 8 / 10); // find start point if ((host == null) || (host.length() == 0) || (host.equals("auto"))) { @@ -92,7 +92,6 @@ public class WebStructurePicture_p { //graph.print(); return graph.draw(width, height, 40, 40, 5, 15); - } private static final int place(ymageGraph graph, plasmaWebStructure structure, String centerhash, String centerhost, int maxnodes, long timeout, double x, double y, int nextlayer, int maxlayer) { diff --git a/htroot/env/templates/submenuCrawler.template b/htroot/env/templates/submenuCrawler.template index f39d27462..c5fd1dd6a 100644 --- a/htroot/env/templates/submenuCrawler.template +++ b/htroot/env/templates/submenuCrawler.template @@ -4,8 +4,8 @@ <div class="SubMenugroup"> <h3>Activity Visualization</h3> <ul class="SubMenu"> - <li><a href="/WatchCrawler_p.html" class="MenuItemLink lock">Crawler Queues</a></li> <li><a href="/WatchWebStructure_p.html" class="MenuItemLink lock">Web Structure</a></li> + <li><a href="/WatchCrawler_p.html" class="MenuItemLink lock">Crawler Queues</a></li> </ul> </div> |
