Allow load average to be displayed in servers using the comma as
decimal separator.
This commit is contained in:
+1
-1
@@ -6548,7 +6548,7 @@ function get_performance_info() {
|
||||
list($server_load) = explode(' ', $loadavg[0]);
|
||||
unset($loadavg);
|
||||
} else if ( function_exists('is_executable') && is_executable('/usr/bin/uptime') && $loadavg = `/usr/bin/uptime` ) {
|
||||
if (preg_match('/load averages?: (\d+[\.:]\d+)/', $loadavg, $matches)) {
|
||||
if (preg_match('/load averages?: (\d+[\.,:]\d+)/', $loadavg, $matches)) {
|
||||
$server_load = $matches[1];
|
||||
} else {
|
||||
trigger_error('Could not parse uptime output!');
|
||||
|
||||
Reference in New Issue
Block a user