]> git.donarmstrong.com Git - infobot.git/commitdiff
stat used wrong time, [8] instead of [9]
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 13 Sep 2000 14:07:02 +0000 (14:07 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 13 Sep 2000 14:07:02 +0000 (14:07 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@94 c11ca15a-4712-0410-83d8-924469b57eb5

src/Misc.pl

index bbfe483e985c5610191b1eef28be9f1be645f19c..48a744270e3c132cbd1c46d51bfa436635fd7e05 100644 (file)
@@ -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;