1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 04:04:31 +00:00

Fixed bug in monitor-info.getXInfo()

This commit is contained in:
Bryan Roe
2022-03-31 10:46:39 -07:00
parent cfb4f649b4
commit 9c2fe127a2
2 changed files with 5 additions and 3 deletions

View File

@@ -572,8 +572,10 @@ function monitorinfo()
child.stdin.write(' {');
child.stdin.write(' display=$4;');
child.stdin.write(' }');
child.stdin.write(' match($0, /-auth .+/);');
child.stdin.write(' _auth = substr($0,RSTART+6,RLENGTH-6);');
child.stdin.write(' match($0, /-auth .+ +/);');
child.stdin.write(' split(substr($0,RSTART+6,RLENGTH-6), _authtok, " ");');
child.stdin.write(' _auth = _authtok[1];');
//child.stdin.write(' _auth = substr($0,RSTART+6,RLENGTH-6);');
child.stdin.write(' if($1=="' + consoleuid + '" && _auth!="")');
child.stdin.write(" {");
child.stdin.write(" printf \"%s,%s,%s,%s\",$1,$2,_auth,display;");