From: dms Date: Wed, 13 Sep 2000 14:07:02 +0000 (+0000) Subject: stat used wrong time, [8] instead of [9] X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9f87f9f5322019c4f1f7c5b51c54bce83f686009;p=infobot.git stat used wrong time, [8] instead of [9] git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@94 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index bbfe483..48a7442 100644 --- a/src/Misc.pl +++ b/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;