From: Lennart Poettering Date: Sun, 4 Jul 2010 14:48:24 +0000 (+0200) Subject: dbus: include NextElapse field in timer properties X-Git-Tag: v1~40 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=14ad1d1437f51b8ebc8dc6e8d3707b41d48d0a3a;hp=82c121a4754a9d405b07c75796e329942af2ccc5 dbus: include NextElapse field in timer properties --- diff --git a/src/dbus-timer.c b/src/dbus-timer.c index af0ae72f4..d548227b5 100644 --- a/src/dbus-timer.c +++ b/src/dbus-timer.c @@ -29,6 +29,7 @@ " \n" \ " \n" \ " \n" \ + " \n" \ " \n" #define INTROSPECTION \ @@ -77,6 +78,7 @@ DBusHandlerResult bus_timer_message_handler(Unit *u, DBusConnection *c, DBusMess BUS_UNIT_PROPERTIES, { "org.freedesktop.systemd1.Timer", "Unit", bus_property_append_string, "s", u->timer.unit->meta.id }, { "org.freedesktop.systemd1.Timer", "Timers", bus_timer_append_timers, "a(stt)", u }, + { "org.freedesktop.systemd1.Timer", "NextElapse", bus_property_append_usec, "t", &u->timer.next_elapse }, { NULL, NULL, NULL, NULL, NULL } }; diff --git a/src/systemctl.c b/src/systemctl.c index 392ecf2c9..f97fa1039 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1024,7 +1024,7 @@ static int print_property(const char *name, DBusMessageIter *iter) { /* Yes, heuristics! But we can change this check * should it turn out to not be sufficient */ - if (strstr(name, "Timestamp") || strstr(name, "Elapse")) { + if (strstr(name, "Timestamp")) { char timestamp[FORMAT_TIMESTAMP_MAX], *t; if ((t = format_timestamp(timestamp, sizeof(timestamp), u)) || arg_all)