]> git.ipfire.org Git - thirdparty/systemd.git/commit
bus-util: fix format of NextElapseUSecRealtime= and LastTriggerUSec=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 25 Jan 2018 08:45:53 +0000 (17:45 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Jan 2018 13:49:24 +0000 (14:49 +0100)
commit68a4b89ca3305a31b639400d04c1484f991b556f
treef0c1ca7ee3b48a885f3b8ee98b65c75506fd5bd6
parenta3a3b6131eb2c44b3b94df973e6edd2e4c8d2095
bus-util: fix format of NextElapseUSecRealtime= and LastTriggerUSec=

Before this, `systemctl show` for calendar type timer unit outputs
something like below.
```
NextElapseUSecRealtime=48y 3w 3d 15h
NextElapseUSecMonotonic=0
LastTriggerUSec=48y 3w 3d 3h 41min 44.093095s
LastTriggerUSecMonotonic=0
```
As both NextElapseUSecRealtime= and LastTriggerUSec= are not timespan
but timestamp, this makes format these values by `format_timestamp()`.
src/shared/bus-util.c