From badbce097389ad4806b8ee207bda4b07b7a58924 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 14 Nov 2002 03:18:30 +0000 Subject: [PATCH] Displays full external program name. --- exec/nodelist-html.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/exec/nodelist-html.js b/exec/nodelist-html.js index a69c2865b5..1c9cae5930 100644 --- a/exec/nodelist-html.js +++ b/exec/nodelist-html.js @@ -39,6 +39,18 @@ function writeln(str) write(str + "\r\n"); } +function xtrn_name(code) +{ + if(this.xtrn_area==undefined) + return(code); + + for(s in xtrn_area.sec_list) + for(p in xtrn_area.sec_list[s].prog_list) + if(xtrn_area.sec_list[s].prog_list[p].code.toLowerCase()==code.toLowerCase()) + return(xtrn_area.sec_list[s].prog_list[p].name); + return(code); +} + // Get HTTP Request while(client.socket.data_waiting) { request = client.socket.recvline(128 /*maxlen*/, 3 /*timeout*/); @@ -136,7 +148,7 @@ for(n=0;n<system.node_list.length;n++) { if(system.node_list[n].status==NODE_INUSE) { user.number=system.node_list[n].useron; if(system.node_list[n].action==NODE_XTRN && system.node_list[n].aux) - action=format("running %s",user.curxtrn); + action=format("running %s",xtrn_name(user.curxtrn)); else action=format(NodeAction[system.node_list[n].action] ,system.node_list[n].aux); -- GitLab