Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-21 08:45:48 +00:00

nfqws2: change default expected gzip ratio

This commit is contained in:
bol-van
2026-01-07 06:50:15 +03:00
parent c43574d056
commit 2fd172118c
2 changed files with 4 additions and 4 deletions

View File

@@ -2685,7 +2685,7 @@ static int luacall_gunzip_inflate(lua_State *L)
struct userdata_zs *uzs = lua_uzs(L, 1, true);
uzs->zs.next_in = (z_const Bytef*)luaL_checklstring(L,2,&l);
uzs->zs.avail_in = (uInt)l;
size_t bufchunk = argc>=3 ? luaL_checkinteger(L,3) : l*4;
size_t bufchunk = argc>=3 ? luaL_checkinteger(L,3) : l*3;
do
{
@@ -2797,7 +2797,7 @@ static int luacall_gzip_deflate(lua_State *L)
uzs->zs.next_in = (z_const Bytef*)luaL_checklstring(L,2,&l);
uzs->zs.avail_in = (uInt)l;
}
size_t bufchunk = argc>=3 ? luaL_checkinteger(L,3) : 1+l/4;
size_t bufchunk = argc>=3 ? luaL_checkinteger(L,3) : 1+l/3;
do
{