MCPcopy Index your code
hub / github.com/Unitech/pm2 / show

Method show

lib/API.js:606–613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

604 if (opts && opts.rawArgs && opts.rawArgs.indexOf('--watch') > -1) {
605 var dayjs = require('dayjs');
606 function show() {
607 process.stdout.write('\x1b[2J');
608 process.stdout.write('\x1b[0f');
609 console.log('Last refresh: ', dayjs().format());
610 that.Client.executeRemote('getMonitorData', {}, function(err, list) {
611 UX.list(list, null);
612 });
613 }
614
615 show();
616 setInterval(show, 900);

Callers

nothing calls this directly

Calls 2

listMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected