* Filter Private from area lists/etc.

* Clean up CPU string for MCI display
This commit is contained in:
Bryan Ashby 2015-10-17 21:39:54 -06:00
parent 65d7186a86
commit 52dee0a401
5 changed files with 27 additions and 3 deletions

View file

@ -91,7 +91,12 @@ function getPredefinedMCIValue(client, code) {
},
OA : function systemArchitecture() { return os.arch(); },
SC : function systemCpuModel() { return os.cpus()[0].model; },
SC : function systemCpuModel() {
//
// Clean up CPU strings a bit for better display
//
return os.cpus()[0].model.replace(/\s+(?= )|\(R\)|\(TM\)|CPU/g, '');
},
// :TODO: cpu load average (over N seconds): http://stackoverflow.com/questions/9565912/convert-the-output-of-os-cpus-in-node-js-to-percentage