From b719810db446244ff708a2f5f08566af67ddab61 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 10 Jan 2013 00:54:46 +0100 Subject: dbus: properly serialize calendar timer data As it turns out the bus properties for timer units wre really broken, so let's clean this up for good and properly add calendar timer serialization. We really should get that right before finalizing the bus API documentation in the wiki... --- src/shared/time-util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/time-util.c') diff --git a/src/shared/time-util.c b/src/shared/time-util.c index 4fd8f0898..e192d5ef5 100644 --- a/src/shared/time-util.c +++ b/src/shared/time-util.c @@ -230,6 +230,8 @@ char *format_timespan(char *buf, size_t l, usec_t t) { const char *suffix; usec_t usec; } table[] = { + { "y", USEC_PER_YEAR }, + { "month", USEC_PER_MONTH }, { "w", USEC_PER_WEEK }, { "d", USEC_PER_DAY }, { "h", USEC_PER_HOUR }, -- cgit v1.2.3