Bug in uptime

Greg Franks greg at xios.UUCP
Fri Oct 24 01:53:19 AEST 1986


Good day!

There is one tiny bug in uptime.c.  On my CT Mitiframe, times(2) returns
failure because tbuf does not point properly.  So, change:

	uptime = (times(tbuf) / HZ );

to

	uptime = (times( &tbuf ) / HZ );
                        ^^^

Voila!



More information about the Comp.sources.bugs mailing list