]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: use LIM2A to show limits
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Fri, 12 Jul 2024 15:55:15 +0000 (17:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Jul 2024 12:04:41 +0000 (14:04 +0200)
commit665dde648177f8251638318a95d09a87fbdcc7ae
tree1ab56bc0e5b408e33b29fb76fe5d3c9b30b07572
parent93cc7df2761c75c866c5b3eec0da06375227bd91
MINOR: debug: use LIM2A to show limits

It is more handy to use LIM2A in debug_parse_cli_show_dev(), as it allows to
show a custom string ("unlimited"), if a given limit value equals to 0.

normalize_rlim() handler is needed to convert properly RLIM_INFINITY to zero,
with the respect of type sizes, as rlim_t is always 4 bytes on 32bit and
64bit arch.
include/haproxy/limits.h
src/debug.c
src/limits.c