On Sun, Feb 12, 2017 at 10:45:34AM -0200, Elise Lennion wrote: > get_rate() is used to print quotas and limits and currently rounds the > number of bytes: > > $ nft add quota filter https-quota 4000 kbytes > $ nft list ruleset > table ip filter { > quota https-quota { > 3 mbytes > } > } > > This may be a problem when loading your configuration after saving it > with 'list ruleset'. With this patch the values are represented in a > greater unit only when there is no rest in the conversion: > > $ nft add quota filter https-quota2 2048 kbytes > $ nft list ruleset > table ip filter { > quota https-quota { > 4000 kbytes > } > > quota https-quota2 { > 2 mbytes > } > } also applied, thanks Elise. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html