mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixing Bug #4849
This commit is contained in:
parent
0b3cfe8812
commit
4745a69050
@ -6810,12 +6810,13 @@ function get_performance_info() {
|
||||
|
||||
if (function_exists('posix_times')) {
|
||||
$ptimes = posix_times();
|
||||
foreach ($ptimes as $key => $val) {
|
||||
$info[$key] = $ptimes[$key] - $PERF->startposixtimes[$key];
|
||||
if (is_Array($ptimes)) {
|
||||
foreach ($ptimes as $key => $val) {
|
||||
$info[$key] = $ptimes[$key] - $PERF->startposixtimes[$key];
|
||||
}
|
||||
$info['html'] .= "<span class=\"posixtimes\">ticks: $info[ticks] user: $info[utime] sys: $info[stime] cuser: $info[cutime] csys: $info[cstime]</span> ";
|
||||
$info['txt'] .= "ticks: $info[ticks] user: $info[utime] sys: $info[stime] cuser: $info[cutime] csys: $info[cstime] ";
|
||||
}
|
||||
$info['html'] .= "<span class=\"posixtimes\">ticks: $info[ticks] user: $info[utime] sys: $info[stime] cuser: $info[cutime] csys: $info[cstime]</span> ";
|
||||
$info['txt'] .= "ticks: $info[ticks] user: $info[utime] sys: $info[stime] cuser: $info[cutime] csys: $info[cstime] ";
|
||||
|
||||
}
|
||||
|
||||
// Grab the load average for the last minute
|
||||
|
Loading…
x
Reference in New Issue
Block a user