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,9 +1480,12 @@ char* nodestatus(scfg_t* cfg, node_t* node, char* buf, size_t buflen, int num)
if(is_valid_xtrnnum(cfg, xtrnnum))
sprintf(str+strlen(str),"running %s"
,cfg->xtrn[xtrnnum]->name);
else if(*user.curxtrn != '\0')
sprintf(str+strlen(str),"running external program %s"
,user.curxtrn);
else
sprintf(str+strlen(str),"running external program #%d"
,node->aux);
,node->aux);
break;
case NODE_DFLT:
strcat(str,"changing defaults");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment