Bug 114617

Summary: sa and lastcomm display wrong times
Product: [Fedora] Fedora Reporter: Herbert Gasiorowski <gasi>
Component: psacctAssignee: Charlie Bennett <ccb>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:01:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Herbert Gasiorowski 2004-01-30 07:59:17 UTC
Description of problem:
When displaying the summary accounting report sa or the list of
accounting data with lastcomm the time-data is 10 times too high.

Version-Release number of selected component (if applicable):
kernel-2.4.22-1.2149.nptl
psacct-6.3.2-28

How reproducible:
Always

Steps to Reproduce:
1.run a program which eats some cputime:
   $ time testprog
   real    0m5.761s
   user    0m5.756s
   sys     0m0.004s
2.check the time with lastcomm:
   $ lastcomm testprog
   cryps                   gasi     stdout    57.61 secs Fri Jan 30     

Actual Results:  
The time shown by lastcomm (and sa) is 10 times the time of the
"time"-command

Expected Results:  Times should be the same


Additional info:

- sa and lastcomm use #define AHZ from /usr/include/acct.h which is
100 but should be 1000
- the same applies to kernel-source-2.6.1-1.61

Comment 2 Charlie Bennett 2004-04-07 17:50:49 UTC

*** This bug has been marked as a duplicate of 89959 ***

Comment 3 Red Hat Bugzilla 2006-02-21 19:01:00 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.