Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Projects
Groups
Snippets
Sign up now
Login
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
e66aa066
Commit
e66aa066
authored
Feb 19, 2015
by
Grazyna Jaworska
Browse files
Fix for custom cpuinfo logic.
parent
5162ca44
Changes
1
Hide whitespace changes
Inline
Side-by-side
provision.drush.inc
View file @
e66aa066
...
...
@@ -399,8 +399,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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment