()
| 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); |