Bug 75272

Summary: [v209] systemctl list-timers is broken
Product: systemd Reporter: mus.svz
Component: generalAssignee: Djalal Harouni <tixxdz>
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: tixxdz
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: dbus-timer: fix bus_timer_vtable to have the correct times

Description mus.svz 2014-02-20 17:49:11 UTC
The new "systemctl list-timers" command shows non-sense times on my machine:

----------

NEXT                         LEFT                  UNIT                         ACTIVATES
Thu 1970-01-01 01:15:00 CET  44 years 1 months ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
Thu 1970-01-01 01:30:00 CET  44 years 1 months ago backup.timer                 backup.service

2 timers listed.

---------

I'm running Arch Linux x64 and my backup.timer is configured with:

OnBootSec=30m
OnUnitActiveSec=4h
Comment 1 Djalal Harouni 2014-02-24 00:49:24 UTC
(In reply to comment #0)
> The new "systemctl list-timers" command shows non-sense times on my machine:
> 
> ----------
> 
> NEXT                         LEFT                  UNIT                     
> ACTIVATES
> Thu 1970-01-01 01:15:00 CET  44 years 1 months ago
> systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
> Thu 1970-01-01 01:30:00 CET  44 years 1 months ago backup.timer             
> backup.service
> 
> 2 timers listed.
> 
> ---------
> 
> I'm running Arch Linux x64 and my backup.timer is configured with:
> 
> OnBootSec=30m
> OnUnitActiveSec=4h

Hi, thanks for reporting!

I've posted a patch upstream that should fix it:
http://lists.freedesktop.org/archives/systemd-devel/2014-February/017322.html
Comment 2 Djalal Harouni 2014-02-24 00:51:06 UTC
Created attachment 94628 [details] [review]
dbus-timer: fix bus_timer_vtable to have the correct times

The patch in case you want to test it. Thanks
Comment 3 Zbigniew Jedrzejewski-Szmek 2014-02-24 05:03:27 UTC
Patch applied as http://cgit.freedesktop.org/systemd/systemd/commit/?id=454f715.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.