From b24ee766bdc8a0fcb945dd7da69d05038e825c24 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sat, 28 Sep 2024 05:48:45 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20=E2=80=9Cckrl()=E2=80=9D=20to=20?= =?UTF-8?q?=E2=80=9Cckratelimit.php=E2=80=9D=20=E2=80=9Clib=E2=80=9D=20ver?= =?UTF-8?q?sion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pfaltgall | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pfaltgall b/pfaltgall index 6e519eb..67f8cd6 100755 --- a/pfaltgall +++ b/pfaltgall @@ -56,8 +56,9 @@ token=as7f8a7s0d89f7as97df09a8s7d90f81jkl2h34lkj12h3jkl4 --- Then run {$SCRIPTNAME} with the path of the configuration file you have -created. This will create an «index.html» file that will be ready to be put -where you want (you can also see it locally, obviously). +created as an argument. This will create an «index.html» file in the current +directory, that will be ready to be put where you want (you can also see it +locally, obviously). [[[ OPTIONS ]]] @@ -407,7 +408,7 @@ function eecho($text) { function ckrl($headers) { $rl=ckratelimit($headers); - if ($rl['ok'] && $rl['sleep']>0) { + if ($rl['ok'] && $rl['remaining']==0) { echo "\rInfo: reached rate limit, sleeping for {$rl['sleep']} second(s)... "; sleep($rl['sleep']); echo "\n";