mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-06 20:55:30 +02:00
* Sanatise ARM CPU string a bit
This commit is contained in:
parent
f318dc8da2
commit
da9ae94ab8
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue