From 8d5dd3c4c1380a44546879679ce917d8981ca7d5 Mon Sep 17 00:00:00 2001 From: echicken <> Date: Wed, 29 Aug 2012 15:43:36 +0000 Subject: [PATCH] Skip problem nodes, don't observe my artificial six-node limit. --- web/root/ecwebv3/sidebar/002-whosOnline.ssjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/root/ecwebv3/sidebar/002-whosOnline.ssjs b/web/root/ecwebv3/sidebar/002-whosOnline.ssjs index 1465a54159..0e2e443443 100644 --- a/web/root/ecwebv3/sidebar/002-whosOnline.ssjs +++ b/web/root/ecwebv3/sidebar/002-whosOnline.ssjs @@ -5,7 +5,9 @@ if(http_request.query.hasOwnProperty("action") && http_request.query.action.toSt print("<b>Who's online</b><br><br>"); print("<table border=0 cellpadding=0 cellspacing=0 class='font'>"); - for(n = 0; n < 6; n++) { + for(n = 0; n < system.node_list.length; n++) { + if(system.node_list[n] === undefined) + continue; print("<tr><td>Node " + (n + 1) + ": </td>"); if(system.node_list[n].status == 3) print("<td>" + system.username(system.node_list[n].useron) + "</td></tr><tr><td> </td><td style=font-style:italic;>" + NodeAction[system.node_list[n].action] + "</td></tr>"); -- GitLab