From 2a511daa274b765965c7f3ae8590a70cf0f5ff85 Mon Sep 17 00:00:00 2001 From: pezcurrel Date: Thu, 7 Nov 2024 20:31:06 +0100 Subject: [PATCH] Modified a commented directive --- lib/curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/curl.php b/lib/curl.php index bc96cc8..dce8d81 100644 --- a/lib/curl.php +++ b/lib/curl.php @@ -94,7 +94,7 @@ function curl($url,$napid=null,$headers=null,$postdata=null,$conntimeout=null,$f if ($sdate===false) break; } elseif (preg_match('#^x-ratelimit-remaining: (\d+)$#i',$header,$matches)===1) { $rlrem=$matches[1]+0; -// echo "Ratelimit-remaining: {$rlrem}\n"; +// echo "«{$url}»: Ratelimit-remaining: {$rlrem}\n"; } elseif (preg_match('#^x-ratelimit-reset: (.*)$#i',$header,$matches)===1) { $rlres=@strtotime($matches[1]); if ($rlres===false) break;