From 214b4d2676a8cc499738ccbc34854b1cdcf9eca6 Mon Sep 17 00:00:00 2001 From: dms Date: Wed, 13 Sep 2000 14:07:02 +0000 Subject: [PATCH] stat used wrong time, [8] instead of [9] git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@94 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/Misc.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blootbot/src/Misc.pl b/blootbot/src/Misc.pl index bbfe483..48a7442 100644 --- a/blootbot/src/Misc.pl +++ b/blootbot/src/Misc.pl @@ -408,8 +408,8 @@ sub isStale { &DEBUG("isStale: $file does not exist") unless ( -f $file); return 1 unless ( -f $file); - return 1 if (time() - (stat($file))[8] > $age*60*60*24); - my $delta = time() - (stat($file))[8]; + return 1 if (time() - (stat($file))[9] > $age*60*60*24); + my $delta = time() - (stat($file))[9]; my $hage = $age*60*60*24; &DEBUG("isStale: not stale! $delta < $hage"); return 0; -- 2.39.2