diff --git a/plugins/dhcp/dhcp-pool b/plugins/dhcp/dhcp-pool index a58a019e..9dde7c77 100755 --- a/plugins/dhcp/dhcp-pool +++ b/plugins/dhcp/dhcp-pool @@ -160,6 +160,8 @@ sub determine_active_leases { } elsif ($line =~ /ends \d ([\d]{4})\/([\d]{2})\/([\d]{2}) ([\d]{2}):([\d]{2}):([\d]{2})/) { $enddate = mktime($6, $5, $4, $3, $2-1, $1-1900, 0, 0); + } + elsif ($line =~ /binding state active/) { if (defined($enddate) && defined($startdate) && defined($lease)) { if ($startdate < time() && $enddate > time()) { push (@activeleases, $lease);