summaryrefslogtreecommitdiff
path: root/src/shared/time-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-10 00:54:46 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-10 00:56:32 +0100
commitb719810db446244ff708a2f5f08566af67ddab61 (patch)
treeceea2415cac3f0f57a42c5c8f84269a6434118b1 /src/shared/time-util.c
parent28989b63f5e3a959557000f21f3891af08be40f7 (diff)
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...
Diffstat (limited to 'src/shared/time-util.c')
-rw-r--r--src/shared/time-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/time-util.c b/src/shared/time-util.c
index 4fd8f08984..e192d5ef58 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 },