Skip to content
Snippets Groups Projects
Commit 3bf7380f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

nodestatus() print internal code rather than xtrn number, if possible

(as a fall back to the full external program name).
parent 8c0957ca
No related branches found
No related tags found
No related merge requests found
Pipeline #5735 passed
...@@ -1480,6 +1480,9 @@ char* nodestatus(scfg_t* cfg, node_t* node, char* buf, size_t buflen, int num) ...@@ -1480,6 +1480,9 @@ char* nodestatus(scfg_t* cfg, node_t* node, char* buf, size_t buflen, int num)
if(is_valid_xtrnnum(cfg, xtrnnum)) if(is_valid_xtrnnum(cfg, xtrnnum))
sprintf(str+strlen(str),"running %s" sprintf(str+strlen(str),"running %s"
,cfg->xtrn[xtrnnum]->name); ,cfg->xtrn[xtrnnum]->name);
else if(*user.curxtrn != '\0')
sprintf(str+strlen(str),"running external program %s"
,user.curxtrn);
else else
sprintf(str+strlen(str),"running external program #%d" sprintf(str+strlen(str),"running external program #%d"
,node->aux); ,node->aux);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment