(plugin) os::linux::local - mode uptime handle login message (#3898)

This commit is contained in:
qgarnier 2022-09-12 15:11:47 +02:00 committed by GitHub
parent a95e3c8025
commit 80371ef943
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ sub run {
);
my ($uptime, $idletime);
if ($stdout =~ /([0-9\.]+)\s+([0-9\.]+)/) {
if ($stdout =~ /^([0-9\.]+)\s+([0-9\.]+)/m) {
($uptime, $idletime) = ($1, $2)
}