util-lib: add parse_percent_unbounded() for percentages over 100% (#3886)

This permits CPUQuota to accept greater values as documented.
This commit is contained in:
David Michael
2016-08-04 13:09:54 +02:00
committed by Lennart Poettering
parent 19c8201744
commit 5124866d73
4 changed files with 13 additions and 5 deletions
+1
View File
@@ -106,4 +106,5 @@ int safe_atod(const char *s, double *ret_d);
int parse_fractional_part_u(const char **s, size_t digits, unsigned *res);
int parse_percent_unbounded(const char *p);
int parse_percent(const char *p);