chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:18 +0000 (07:50 +0200)
commit4d84b5748fcfc3c1b70d7fd469ae75769f393385
treef2fae699c6f637221f6eaa6b0a8caaa24a8d827b
parent348a0b6596fdeb91e5cc69e09d5e2feb74455f04
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