Use proper function

This commit is contained in:
Jamie Cameron
2024-08-08 19:21:34 -07:00
parent bcec22b385
commit 090a769145

View File

@@ -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 };