Red Hat Bugzilla – Bug 199501
Feature request: clipping option for 'ac'
Last modified: 2008-02-10 02:43:09 EST
Description of problem:
The ac command summarizes how much time you spend online, by reading
/var/log/wtmp. The '-d' option breaks it down by day.
Unfortunately, ac counts simultaneous logins as working twice (or three times)
as hard, letting you turn an 8-hour day into a 16 or 24 hour day.
The sac command is a similar program, but with a '-c' option which fixes the
problem: an 8-hour day is counted as 8 hours, unaffected by how many times
you're logged on simultaneously.
Version-Release number of selected component (if applicable):
All the time
Steps to Reproduce:
1. sign on two sessions simultaneously for one hour.
2. ac -d username
3. see your time say 'two hours'.
You appear to have done two hours of work.
You should appear to have done one hour.
The 'sac' command is available at http://mama.indstate.edu/users/ice/sac/ , and
rpms for 'sac' are available at http://rpm.pbone.net/index.php3?stat=3&search=sac
FC5 is no longer supported, there will be no further updates released for it.
The version of psacct on Fedora 7 is 6.3.2-44, and it still has this behaviour.
The version of psacct on Fedora 8 is 6.3.2-48, and it still has this behaviour.