Skip to content

Commit

Permalink
avoid exiting for Win
Browse files Browse the repository at this point in the history
  • Loading branch information
aksakalli committed Aug 11, 2017
1 parent 6d15f11 commit c2eb2e8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/gtop.js
Expand Up @@ -84,13 +84,18 @@ screen.key(['escape', 'q', 'C-c'], function(ch, key) {
});

function init() {
new monitor.Cpu(cpuLine);
new monitor.Cpu(cpuLine); //no Windows support
new monitor.Mem(memLine, memDonut, swapDonut);
new monitor.Net(netSpark);
new monitor.Disk(diskDonut);
new monitor.Proc(procTable);
new monitor.Proc(procTable); // no Windows support
}


process.on('uncaughtException', function(err) {
// avoid exiting due to unsupported system resources in Windows
});

module.exports = {
init: init,
monitor: monitor
Expand Down

0 comments on commit c2eb2e8

Please sign in to comment.