commit 308f693c2d7a1b1f586154b5ede489ce8816c04b
parent b1a90c6e200febee64a26c535153925153579447
Author: Naveen Narayanan <zerous@nocebo.space>
Date: Wed, 20 Oct 2021 02:07:43 +0200
Fix bug
The call to pow() returns the number of minutes.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/attack.c b/attack.c
@@ -45,7 +45,7 @@ isexpire(struct attacker *a)
{
time_t ban;
- ban = pow(3, a->nban) * 60 * 60;
+ ban = pow(3, a->nban) * 60;
if (difftime(time(NULL), a->last) >= ban)
return 1;