From 20ff553d5cda4b4863c3ec93c76f44a831e4350c Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Sat, 28 Sep 2024 05:45:03 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20=E2=80=9Cckrl()=E2=80=9D=20to=20the?= =?UTF-8?q?=20=E2=80=9Clib=E2=80=9D=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/clitools/getinstinfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/clitools/getinstinfo.php b/web/clitools/getinstinfo.php index 88181a2..eca85d3 100755 --- a/web/clitools/getinstinfo.php +++ b/web/clitools/getinstinfo.php @@ -1206,7 +1206,7 @@ function ckrl($headers,$ctx) { $res=ckratelimit($headers); if (!$res['ok']) { eecho(2,"{$ctx}: ckratelimit: {$res['error']}.\n"); - } elseif ($res['sleep']>0) { + } elseif ($res['remaining']==0) { eecho(2,"{$ctx}: ckratelimit: x-ratelimit-remaining is 0, sleeping for ".ght($res['sleep']).' (until '.date('c',time()+$res['sleep']).") ...\n"); sleep($res['sleep']); }