Minor problem with 64bTT: monthly accounting figures

Marius Strobl marius at alchemy.franken.de
Mon Mar 1 08:06:09 PST 2004


On Mon, Mar 01, 2004 at 04:03:12PM +0100, Maxime Henrion wrote:
> Tillman Hodgson wrote:
> > Look a little odd this month:
> > 
> > Subject: caliban.rospa.ca monthly run output
> > 
> > Doing login accounting:
> >         root                 0.84
> >         total            -298848.27
> >         toor             -298849.12
> > 
> > -- End of monthly output --
> > 
> > Luckily this isn't a box where I care much about accounting, but a
> > Heads-Up in the conversion notes might be warranted.
> > 
> > -T
> 
> This is probably because the time is stored as a 32-bits integer in
> /var/run/utmp and /var/log/wtmp.
> 
> from /usr/include/utmp.h :
> 
> %%
> struct lastlog {
>         int32_t ll_time;
>         char    ll_line[UT_LINESIZE];
>         char    ll_host[UT_HOSTSIZE];
> };
> 
> struct utmp {
>         char    ut_line[UT_LINESIZE];
>         char    ut_name[UT_NAMESIZE];
>         char    ut_host[UT_HOSTSIZE];
>         int32_t ut_time;
> };
> %%
> 
> I think there is a utmpx pseudo-standard that could help with this
> problem.  I also seem to remember someone was working on this but I have
> no idea where it's at nowadays.
> 

Well, I see this on i386 (with 32bit time_t), too.



More information about the freebsd-sparc64 mailing list