diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-15 09:57:28 +0000 |
---|---|---|
committer | Evgeny Vereshchagin <evvers@ya.ru> | 2015-10-15 09:57:28 +0000 |
commit | f1db33275635c77ee01132a27235d4bc362f9d4a (patch) | |
tree | 81b149957a4cae8968b80bb739546a18f0cc76a7 /src/shared | |
parent | 19833db683c1e197718f00d1d5cb4827ee7897d8 (diff) |
run: can launch units with TimerSlackNSec
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bus-util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c index 3a45ac4064..a5d6edbba9 100644 --- a/src/shared/bus-util.c +++ b/src/shared/bus-util.c @@ -1655,7 +1655,16 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen } r = sd_bus_message_append(m, "v", "t", u); + } else if (streq(field, "TimerSlackNSec")) { + nsec_t n; + r = parse_nsec(eq, &n); + if (r < 0) { + log_error("Failed to parse %s value %s", field, eq); + return -EINVAL; + } + + r = sd_bus_message_append(m, "v", "t", n); } else { log_error("Unknown assignment %s.", assignment); return -EINVAL; |