Changeset 108 for trunk/klask
- Timestamp:
- Dec 12, 2011, 2:54:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/klask
r107 r108 869 869 }; 870 870 871 if ( $mactimedb{$ip_mac}->{timestamp} - $ip_timestamp > $timestamp_barrier 871 if ( 872 ( $mactimedb{$ip_mac}->{timestamp} - $ip_timestamp > $timestamp_barrier 873 or ( 874 $mactimedb{$ip_mac}->{timestamp} > $ip_timestamp 875 and $timestamp - $mactimedb{$ip_mac}->{timestamp} > $timestamp_3month 876 ) 877 ) 872 878 and ( 873 879 not $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/ … … 879 885 } 880 886 881 elsif ( $ip_timestamp - $mactimedb{$ip_mac}->{timestamp} > $timestamp_barrier 887 elsif ( 888 ( $ip_timestamp - $mactimedb{$ip_mac}->{timestamp} > $timestamp_barrier 889 or ( 890 $ip_timestamp > $mactimedb{$ip_mac}->{timestamp} 891 and $timestamp - $ip_timestamp > $timestamp_3month 892 ) 893 ) 882 894 and ( 883 895 not $ip_hostname_fq =~ m/^float/ 884 896 or $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/ 885 897 )) { 886 print "remove ip ".$mactimedb{$ip_mac}->{ip}."\n" if $verbose;887 delete $computerdb->{$mactimedb{$ip_mac}->{ip}};888 $database_has_changed++;889 }890 891 elsif ( $mactimedb{$ip_mac}->{timestamp} > $ip_timestamp892 and $timestamp - $mactimedb{$ip_mac}->{timestamp} > $timestamp_3month893 and not $mactimedb{$ip_mac}->{hostname_fq} =~ m/^float/894 ) {895 print "remove ip $ip\n" if $verbose;896 delete $computerdb->{$ip};897 $database_has_changed++;898 }899 900 elsif ( $ip_timestamp > $mactimedb{$ip_mac}->{timestamp}901 and $timestamp - $ip_timestamp > $timestamp_3month902 and not $ip_hostname_fq =~ m/^float/903 ) {904 898 print "remove ip ".$mactimedb{$ip_mac}->{ip}."\n" if $verbose; 905 899 delete $computerdb->{$mactimedb{$ip_mac}->{ip}};
Note: See TracChangeset
for help on using the changeset viewer.