Skip to content
Snippets Groups Projects
Commit 7d51aee2 authored by rswindell's avatar rswindell
Browse files

Node list now stops at cfg.sys_nodes (rather than the size of the node.dab).

parent 9beed7ed
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender) ...@@ -128,7 +128,7 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender)
return; return;
} }
} }
for(n=0;;n++) { for(n=0;n<MainForm->cfg.sys_nodes;n++) {
lseek(nodedab, n*sizeof(node_t), SEEK_SET); lseek(nodedab, n*sizeof(node_t), SEEK_SET);
if(eof(nodedab)) if(eof(nodedab))
break; break;
...@@ -343,6 +343,8 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender) ...@@ -343,6 +343,8 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender)
strcat(str,"E"); strcat(str,"E");
if(node.misc&NODE_DOWN) if(node.misc&NODE_DOWN)
strcat(str,"D"); strcat(str,"D");
if(node.misc&NODE_LCHAT)
strcat(str,"C");
strcat(str,"]"); } strcat(str,"]"); }
if(node.errors) { if(node.errors) {
sprintf(tmp, " %d error%c",node.errors, node.errors>1 ? 's' : '\0' ); sprintf(tmp, " %d error%c",node.errors, node.errors>1 ? 's' : '\0' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment