Changeset 117
- Timestamp:
- Oct 6, 2012, 10:22:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r116 r117 1229 1229 mac_address => $ip_mac, 1230 1230 }; 1231 1231 1232 1232 if ( 1233 ($ip_timestamp > $swithportdb{$swpt}->{timestamp}) 1234 and ( 1235 $ip_hostname_fq !~ m/^float/ 1236 or $ip_timestamp > ( $swithportdb{$swpt}->{timestamp} + (15 * 24 * 3600) ) 1237 ) 1233 ($ip_hostname_fq =~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp} + (15 * 24 * 3600)) 1234 or 1235 ($ip_hostname_fq !~ m/^float/ and ( 1236 ($swithportdb{$swpt}->{hostname_fq} =~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp} - (15 * 24 * 3600)) 1237 or 1238 ($swithportdb{$swpt}->{hostname_fq} !~ m/^float/ and $ip_timestamp > $swithportdb{$swpt}->{timestamp}) 1239 )) 1238 1240 ) { 1239 1241 $swithportdb{$swpt} = { … … 1250 1252 next if $swpt =~ m/^\s*0$/; 1251 1253 next if $swithportdb{$swpt}->{hostname_fq} !~ m/^float/; 1252 1254 1253 1255 my $src_ip = $swithportdb{$swpt}->{ip}; 1254 1256 my $src_timestamp = 0;
Note: See TracChangeset
for help on using the changeset viewer.