dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
7a358e0
)
Merge "Compat fix for HHVM on non-Linux OSs"
author
Ori Livneh
<ori@wikimedia.org>
Wed, 23 Sep 2015 18:03:19 +0000
(18:03 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 23 Sep 2015 18:03:19 +0000
(18:03 +0000)
includes/profiler/ProfilerFunctions.php
patch
|
blob
|
history
diff --git
a/includes/profiler/ProfilerFunctions.php
b/includes/profiler/ProfilerFunctions.php
index
6c58453
..
50a77ec
100644
(file)
--- a/
includes/profiler/ProfilerFunctions.php
+++ b/
includes/profiler/ProfilerFunctions.php
@@
-32,7
+32,7
@@
function wfGetRusage() {
if ( !function_exists( 'getrusage' ) ) {
return false;
- } elseif ( defined( 'HHVM_VERSION' ) ) {
+ } elseif ( defined( 'HHVM_VERSION' )
&& PHP_OS === 'Linux'
) {
return getrusage( 2 /* RUSAGE_THREAD */ );
} else {
return getrusage( 0 /* RUSAGE_SELF */ );