From 6fa95fc3ce0732180e59f7d3d1c68b10c887b9b6 Mon Sep 17 00:00:00 2001 From: minima Date: Sun, 27 Feb 2005 16:08:15 +0000 Subject: [PATCH] add expires onto dupe listings use correct default age for spots --- perl/DXDupe.pm | 2 +- perl/Spot.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/perl/DXDupe.pm b/perl/DXDupe.pm index b7d2618a..6595ef87 100644 --- a/perl/DXDupe.pm +++ b/perl/DXDupe.pm @@ -103,7 +103,7 @@ sub listdups my @out; for (sort { $d{$a} <=> $d{$b} } grep { m{$regex}i } keys %d) { my ($dum, $key) = unpack "a1a*", $_; - push @out, "$key = " . cldatetime($d{$_} - $dupage); + push @out, "$key = " . cldatetime($d{$_} - $dupage) . " expires " . cldatetime($d{$_}); } return @out; } diff --git a/perl/Spot.pm b/perl/Spot.pm index 22880485..d351b82c 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -36,7 +36,7 @@ $defaultspots = 10; # normal number of spots to return $maxdays = 100; # normal maximum no of days to go back $dirprefix = "spots"; $duplth = 20; # the length of text to use in the deduping -$dupage = 3*3600; # the length of time to hold spot dups +$dupage = 1*3600; # the length of time to hold spot dups $maxcalllth = 12; # the max length of call to take into account for dupes $filterdef = bless ([ # tag, sort, field, priv, special parser -- 2.43.0