From da9ae94ab821ee5fd86e3f40a31ea74279111c87 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 1 Nov 2015 14:02:06 -0700 Subject: [PATCH] * Sanatise ARM CPU string a bit --- core/predefined_mci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/predefined_mci.js b/core/predefined_mci.js index edd306b0..3b067906 100644 --- a/core/predefined_mci.js +++ b/core/predefined_mci.js @@ -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