MINOR: ring: support unit suffixes in the size
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 09:56:45 +0000 (10:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 09:56:45 +0000 (10:56 +0100)
commitf8d3d2e4cf384dd8a59f1d3dd712e43c26425370
treef974e59f6195e8058ee642990a381bcd4272c3f3
parent82f190f8822c34137b8e0fcc6a7ca5efbc41d53d
MINOR: ring: support unit suffixes in the size

The ring size used to take only numbers and silently ignore letters (due
to atol()), resulting it tiny buffers when trying to collect traces and
using e.g. "size 10g". Let's make use of parse_size_err() to properly
parse units.
src/sink.c