Commit 0b7e178d authored by omega8cc's avatar omega8cc

Fix for custom cpuinfo logic.

parent 45d7418f
......@@ -405,8 +405,7 @@ function provision_count_cpus() {
$ncpus = FALSE;
if (is_readable("/data/all/cpuinfo")) {
# this should work on BOA with a /data/all/cpuinfo generated daily
$cpuinfo = file_get_contents("/data/all/cpuinfo");
$cpuinfo = str_replace('\n', '', $cpuinfo);
$cpuinfo = (int) file_get_contents("/data/all/cpuinfo");
if ($cpuinfo !== FALSE && is_numeric($cpuinfo)) {
$ncpus = $cpuinfo;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment