]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: increase granularity of percent specifications all over the place to permille 9484/head
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Jul 2018 16:52:42 +0000 (18:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Jul 2018 14:14:45 +0000 (16:14 +0200)
commitf806dfd34595dac8632ba777250323a4735568dc
tree097fcaf32ec1f23412050084a077e48ee9061130
parent8cbc92d5975b603002c3141364a7709a9c66e23a
tree-wide: increase granularity of percent specifications all over the place to permille

We so far had various placed we'd parse percentages with
parse_percent(). Let's make them use parse_permille() instead, which is
downward compatible (as it also parses percent values), and increases
the granularity a bit. Given that on the wire we usually normalize
relative specifications to something like UINT32_MAX anyway changing
from base-100 to base-1000 calculations can be done easily without
breaking compat.

This commit doesn't document this change in the man pages. While
allowing more precise specifcations permille is not as commonly
understood as perent I guess, hence let's keep this out of the docs for
now.
src/core/load-fragment.c
src/login/logind-user.c
src/login/pam_systemd.c
src/shared/bus-unit-util.c