Skip to content

Commit

Permalink
correct fix
Browse files Browse the repository at this point in the history
no need to capture something to ignore it thereafter

see: #1734
  • Loading branch information
guillomovitch committed Aug 12, 2012
1 parent d5e576f commit 09d5bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FusionInventory/Agent/Task/Inventory/Input/HPUX/Uptime.pm
Expand Up @@ -24,8 +24,8 @@ sub doInventory {
}

sub _getUptime {
my (undef, $days, $hours, $minutes) = getFirstMatch(
pattern => qr/up \s (:?(\d+)\sdays\D+)? (\d{1,2}) : (\d{1,2})/x,
my ($days, $hours, $minutes) = getFirstMatch(
pattern => qr/up \s (?:(\d+)\sdays\D+)? (\d{1,2}) : (\d{1,2})/x,
@_
);

Expand Down

0 comments on commit 09d5bf6

Please sign in to comment.