* Sanatise ARM CPU string a bit
This commit is contained in:
parent
f318dc8da2
commit
da9ae94ab8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue