csuite: bug in bin/login-summary

Date: Wed, 12 Mar 1997 03:03:16 -0400
From: Gerard MacNeil <macneil@chebucto.ns.ca>
To: CSuite Technical Reports <csuite-tech@chebucto.ns.ca>
Precedence: bulk

next message in archive
next message in thread
previous message in archive
Index of Subjects


In bin/login-summary
        agr = gremtime / gremcount / 60
        ar = remtime / remcount / 60
        ag = gloctime / gloccount / 60
        a = loctime / loccount / 60

Any of 'gremcount remcount gloccount loccount'  could be 0.



wwhcn:/var/log$ cat !$
cat test.wtmp-rotate
+++ getdate
++ putdate %Y%m%d 858070825
+ old=wtmp.19970311
+ cd /var/adm
+ mv wtmp wtmp.19970311
+ touch wtmp
+ login-summary wtmp.19970311
+ tee /tmp/ls10768
+ head -1
gawk: cmd. line:42: (FILENAME=- FNR=76) fatal: division by zero attempted
+ sed -n 2,$p /tmp/ls10768
+ rm -f /tmp/ls10768
+ gzip wtmp.19970311
+ exit 0


Gerard MacNeil, P. Eng.



next message in archive
next message in thread
previous message in archive
Index of Subjects