* Sanatise ARM CPU string a bit

This commit is contained in:
Bryan Ashby 2015-11-01 14:02:06 -07:00
parent f318dc8da2
commit da9ae94ab8
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function getPredefinedMCIValue(client, code) {
//
// Clean up CPU strings a bit for better display
//
return os.cpus()[0].model.replace(/\s+(?= )|\(R\)|\(TM\)|CPU/g, '');
return os.cpus()[0].model.replace(/\s+(?= )|\(R\)|\(TM\)|processor|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