system: cpu route

This commit is contained in:
Girish Ramakrishnan
2023-12-04 00:23:25 +01:00
parent d45c433bc7
commit 8a20b603f5
5 changed files with 33 additions and 1 deletions

View File

@@ -15,7 +15,8 @@ exports = module.exports = {
getLogs,
getBlockDevices,
runSystemChecks,
getProvider
getProvider,
getCpus
};
const apps = require('./apps.js'),
@@ -364,3 +365,7 @@ function getProvider() {
const provider = safe.fs.readFileSync(paths.PROVIDER_FILE, 'utf8');
return provider ? provider.trim() : 'generic';
}
async function getCpus() {
return os.cpus();
}