]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-user.c
tree-wide: increase granularity of percent specifications all over the place to permille
[thirdparty/systemd.git] / src / login / logind-user.c
index e18a6f0efeb42082bfe431d36613596dc0f237bc..346f792fb8c748bb451f17e84a119939dbe28e51 100644 (file)
@@ -711,9 +711,9 @@ int config_parse_tmpfs_size(
         assert(data);
 
         /* First, try to parse as percentage */
-        r = parse_percent(rvalue);
-        if (r > 0 && r < 100)
-                *sz = physical_memory_scale(r, 100U);
+        r = parse_permille(rvalue);
+        if (r > 0 && r < 1000)
+                *sz = physical_memory_scale(r, 1000U);
         else {
                 uint64_t k;