Message ID | 20240814115122.279041-2-pablo@netfilter.org |
---|---|
State | Accepted |
Headers | show |
Series | [nft,v2,1/2] datatype: reject rate in quota statement | expand |
diff --git a/src/datatype.c b/src/datatype.c index 297c5d0409d5..33fe471048ef 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -1477,7 +1477,7 @@ static struct error_record *time_unit_parse(const struct location *loc, else if (strcmp(str, "week") == 0) *unit = 1ULL * 60 * 60 * 24 * 7; else - return error(loc, "Wrong rate format"); + return error(loc, "Wrong time format, expecting second or minute or hour or day or week"); return NULL; }
Display: Wrong unit format, expecting bytes or kbytes or mbytes instead of: Wrong rate format Fixes: 6615676d825e ("src: add per-bytes limit") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> --- src/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)