mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
The uptime command has changed its wording https://github.com/webmin/webmin/issues/498
This commit is contained in:
@ -138,8 +138,8 @@ sub os_get_cpu_info
|
|||||||
{
|
{
|
||||||
local $out = &backquote_command("uptime");
|
local $out = &backquote_command("uptime");
|
||||||
local @load;
|
local @load;
|
||||||
if ($out =~ /load\s+average:\s+([0-9\.]+),\s+([0-9\.]+),\s+([0-9\.]+)/) {
|
if ($out =~ /load\s+(average|averages):\s+([0-9\.]+),\s+([0-9\.]+),\s+([0-9\.]+)/) {
|
||||||
@load = ($1, $2, $3);
|
@load = ($2, $3, $4);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return ( );
|
return ( );
|
||||||
|
Reference in New Issue
Block a user