Updated fdsnapshot and timerinfo

Bryan Roe committed Dec 9, 2020 at 23:53 UTC 2f7ad6c338e9f78f7a25ce86e20d8824f33befe1
1 file changed +10 -2
agents/meshcore.js
+10 -2
@@ -199,7 +199,8 @@ function createMeshCore(agent) {
199 }
200 break;
201 case 'query':
202 - switch (data.value) {
202 + switch (data.value)
203 + {
204 case 'connection':
205 data.result = require('MeshAgent').ConnectedServer;
206 this._send(data);
@@ -210,6 +211,10 @@ function createMeshCore(agent) {
211 this.tag.ipc._send(this.tag.payload);
212 }).parentPromise.tag = { ipc: this, payload: data };
213 break;
214 + case 'timerinfo':
215 + data.result = require('ChainViewer').getTimerInfo();
216 + this._send(data);
217 + break;
218 }
219 break;
220 case 'amtstate':
@@ -2675,7 +2680,7 @@ function createMeshCore(agent) {
2680 var response = null;
2681 switch (cmd) {
2682 case 'help': { // Displays available commands
2678 - var fin = '', f = '', availcommands = 'coreinfo,coredump,service,fdsnapshot,fdcount,startupoptions,alert,agentsize,versions,help,info,osinfo,args,print,type,dbkeys,dbget,dbset,dbcompact,eval,parseuri,httpget,nwslist,plugin,wsconnect,wssend,wsclose,notify,ls,ps,kill,netinfo,location,power,wakeonlan,setdebug,smbios,rawsmbios,toast,lock,users,openurl,getscript,getclip,setclip,log,av,cpuinfo,sysinfo,apf,scanwifi,wallpaper,agentmsg';
2683 + var fin = '', f = '', availcommands = 'timerinfo,coreinfo,coredump,service,fdsnapshot,fdcount,startupoptions,alert,agentsize,versions,help,info,osinfo,args,print,type,dbkeys,dbget,dbset,dbcompact,eval,parseuri,httpget,nwslist,plugin,wsconnect,wssend,wsclose,notify,ls,ps,kill,netinfo,location,power,wakeonlan,setdebug,smbios,rawsmbios,toast,lock,users,openurl,getscript,getclip,setclip,log,av,cpuinfo,sysinfo,apf,scanwifi,wallpaper,agentmsg';
2684 if (process.platform == 'win32') { availcommands += ',safemode,wpfhwacceleration,uac'; }
2685 if (amt != null) { availcommands += ',amt,amtconfig,amtevents'; }
2686 if (process.platform != 'freebsd') { availcommands += ',vm';}
@@ -2691,6 +2696,9 @@ function createMeshCore(agent) {
2696 response = "Available commands: \r\n" + fin + ".";
2697 break;
2698 }
2699 + case 'timerinfo':
2700 + response = require('ChainViewer').getTimerInfo();
2701 + break;
2702 case 'find':
2703 if (args['_'].length <= 1)
2704 {