mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Use proper function
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
sub get_alive_status
|
||||
{
|
||||
local $out = `uptime 2>/dev/null`;
|
||||
local $out = &backquote_command("uptime 2>/dev/null");
|
||||
return { 'up' => 1,
|
||||
'desc' => $out =~ /\s+up\s+([^,]+),/ ? &text('alive_up', "$1")
|
||||
: undef };
|
||||
|
||||
Reference in New Issue
Block a user