mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
Merge branch 'MDL-64543-slow-profile-patch' of https://github.com/brendanheywood/moodle
This commit is contained in:
commit
0f50e9cf90
@ -232,7 +232,7 @@ function profiling_stop() {
|
||||
}
|
||||
|
||||
// If we only profiled because it was potentially slow then...
|
||||
if ($CFG->profilepotentialslowpage) {
|
||||
if (!empty($CFG->profilepotentialslowpage)) {
|
||||
$duration = microtime(true) - $CFG->profilepotentialslowpage;
|
||||
if ($duration < $CFG->profilingslow) {
|
||||
// Wasn't slow enough.
|
||||
|
Loading…
x
Reference in New Issue
Block a user