X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=c5ca8dc11d19e5bd7195fa9885e12bc697dc909a;hp=3375bac985566dc6b3d8ebb9f8e33a6712193c2f;hb=5556b5fe41173107a67dbe875fbd916a46e52a02;hpb=e342365c27ecae32a7f20ada0b2c623ce22e5ea8 diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 3375bac98..c5ca8dc11 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -4045,7 +4045,7 @@ static int append_assignment(sd_bus_message *m, const char *assignment) { } else if (streq(field, "MemoryLimit")) { off_t bytes; - r = parse_bytes(eq, &bytes); + r = parse_size(eq, 1024, &bytes); if (r < 0) { log_error("Failed to parse bytes specification %s", assignment); return -EINVAL; @@ -4115,7 +4115,7 @@ static int append_assignment(sd_bus_message *m, const char *assignment) { return -EINVAL; } - r = parse_bytes(bandwidth, &bytes); + r = parse_size(bandwidth, 1000, &bytes); if (r < 0) { log_error("Failed to parse byte value %s.", bandwidth); return -EINVAL;