Allow load average to be displayed in servers using the comma as

decimal separator.
This commit is contained in:
stronk7
2006-10-07 10:33:58 +00:00
parent fb414b62e5
commit dd00dbd799
+1 -1
View File
@@ -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!');