()
| 551 | if (opts && opts.rawArgs && opts.rawArgs.indexOf('--watch') > -1) { |
| 552 | var moment = require('moment'); |
| 553 | function show() { |
| 554 | process.stdout.write('\033[2J'); |
| 555 | process.stdout.write('\033[0f'); |
| 556 | console.log('Last refresh: ', moment().format('LTS')); |
| 557 | that.Client.executeRemote('getMonitorData', {}, function(err, list) { |
| 558 | UX.dispAsTable(list, null); |
| 559 | }); |
| 560 | } |
| 561 | |
| 562 | show(); |
| 563 | setInterval(show, 900); |