X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FDXUser.pm;fp=perl%2FDXUser.pm;h=85a22195f9a08de314cf0389b194cb273d4db51c;hp=5e8f2dfab50abfb600c7fe128881e892a09b44cb;hb=c87f5c87d207de16008d38561a7bc547a10ea62b;hpb=47a2468ee764241b78a330e2391f89dc886cbcad diff --git a/perl/DXUser.pm b/perl/DXUser.pm index 5e8f2dfa..85a22195 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -474,7 +474,10 @@ sub close my $ip = shift; $self->{lastin} = $main::systime; # add a record to the connect list -# $self->put(); + my $ref = [$startt || $self->{startt}, $main::systime]; + push @$ref, $ip if $ip; + push @{$self->{connlist}}, $ref; + shift @{$self->{connlist}} if @{$self->{connlist}} > $maxconnlist; } #