From: dms Date: Wed, 13 Sep 2000 14:03:28 +0000 (+0000) Subject: changed some text, more debugging X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=315f59c58f8b870f99991bf7fc69ff8c36a5b680;p=infobot.git changed some text, more debugging git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@93 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Misc.pl b/blootbot/src/Misc.pl index 0215b4f..bbfe483 100644 --- a/blootbot/src/Misc.pl +++ b/blootbot/src/Misc.pl @@ -406,11 +406,12 @@ sub IsHostMatch { sub isStale { my ($file, $age) = @_; + &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]; my $hage = $age*60*60*24; - &DEBUG("isStale: not stale! $delta < $hage ($age) ?"); + &DEBUG("isStale: not stale! $delta < $hage"); return 0; }