From 2f90243356cab9298c30edf98f77f1d8a9943f06 Mon Sep 17 00:00:00 2001 From: Steve Allison Date: Thu, 21 Feb 2013 19:19:51 +0000 Subject: [PATCH] Fix debug output for check period --- defense.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defense.php b/defense.php index 512c046..022a6dd 100644 --- a/defense.php +++ b/defense.php @@ -347,7 +347,7 @@ class defense extends rcube_plugin { $this->debug($query . " [" . $result->rowCount() . "]"); $row = $result->fetch(); if (!$row) { $this->debug("Warning, SQL result empty: $query"); return false; } // No rows? Strange, abort. - $this->debug("Found " . $row['n'] . " failed attempts in last " . $this->fail_reset . "s"); + $this->debug("Found " . $row['n'] . " failed attempts in last " . (time() - $rTime) . "s"); if (($row['n'] >= $this->fail_max)) { $this->debug("IP banned."); // This IP is now banned