auto ttl alog minor fix

This commit is contained in:
bol-van 2024-03-02 21:22:35 +03:00
parent 1222eb96f5
commit 7ba1c28f94
10 changed files with 1 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1195,9 +1195,7 @@ uint8_t autottl_guess(uint8_t ttl, const autottl *attl)
path = orig - ttl;
if (path <=attl->delta) return 0;
fake = path - attl->delta;
fake = path > attl->delta ? path - attl->delta : attl->min;
if (fake<attl->min) fake=attl->min;
else if (fake>attl->max) fake=attl->max;