(plugin) os::linux::local - mode uptime handle login message (#3898)
This commit is contained in:
parent
a95e3c8025
commit
80371ef943
|
@ -63,7 +63,7 @@ sub run {
|
||||||
);
|
);
|
||||||
|
|
||||||
my ($uptime, $idletime);
|
my ($uptime, $idletime);
|
||||||
if ($stdout =~ /([0-9\.]+)\s+([0-9\.]+)/) {
|
if ($stdout =~ /^([0-9\.]+)\s+([0-9\.]+)/m) {
|
||||||
($uptime, $idletime) = ($1, $2)
|
($uptime, $idletime) = ($1, $2)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue