return 1;
}
- if (streq(field, "CPUQuotaPeriodSec")) {
- usec_t u = USEC_INFINITY;
-
- r = parse_sec_def_infinity(eq, &u);
- if (r < 0)
- return log_error_errno(r, "CPU quota period '%s' invalid.", eq);
-
- r = sd_bus_message_append(m, "(sv)", "CPUQuotaPeriodUSec", "t", u);
- if (r < 0)
- return bus_log_create_error(r);
-
- return 1;
- }
+ if (streq(field, "CPUQuotaPeriodSec"))
+ return bus_append_parse_sec_rename(m, field, isempty(eq) ? "infinity" : eq);
if (streq(field, "DeviceAllow")) {
if (isempty(eq))