Comment 1 for bug 560925

Valdisvi (valdis-vitolins) wrote :

When timeoutd.c (got from Ubuntu source repository) compiled with DEBUG flag, /var/log/debug shows:
...
Apr 11 23:59:46 piano timeoutd[25824]: Reading today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Seek to end of wtmp
Apr 11 23:59:46 piano timeoutd[25824]: Finished reading today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Time to check utmp for exceeded limits.
Apr 11 23:59:46 piano timeoutd[25824]: User ieva or * not in config -> No restrictions. Not checking ieva on pts/2
Apr 11 23:59:46 piano timeoutd[25824]: User valdis or * not in config -> No restrictions. Not checking valdis on pts/2
Apr 11 23:59:46 piano timeoutd[25824]: NO xsession detected. device=pts/2 host=inks.lan
Apr 11 23:59:46 piano timeoutd[25824]: Checking user tv group users tty pts/2.
Apr 11 23:59:46 piano timeoutd[25824]: Matched entry 5
Apr 11 23:59:46 piano timeoutd[25824]: Idle=0 (max=0) Sess=3 (max=120) Daily=0 (max=120) warntime=1
Apr 11 23:59:46 piano timeoutd[25824]: NO xsession detected. device=pts/2 host=inks.lan
Apr 11 23:59:46 piano timeoutd[25824]: TTY pts/2: Discipline=TTY.
Apr 11 23:59:46 piano timeoutd[25824]: User tv is active.
Apr 11 23:59:46 piano timeoutd[25824]: Freeing list of today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Finished freeing list of today's wtmp entries.
Apr 11 23:59:46 piano timeoutd[25824]: Finished checking utmp... sleeping for 1 minute.
...
Note, that Daily=0 all the time. Though couldn't catch how it is counted and where the bug is.