Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site xios.UUCP Path: utzoo!dciem!nrcaer!xios!greg From: greg@xios.UUCP (Greg Franks) Newsgroups: net.sources.bugs Subject: Bug in uptime Message-ID: <343@xios.UUCP> Date: Thu, 23-Oct-86 11:53:19 EDT Article-I.D.: xios.343 Posted: Thu Oct 23 11:53:19 1986 Date-Received: Sat, 25-Oct-86 17:14:25 EDT Reply-To: greg@xios.UUCP (Greg Franks) Distribution: world Organization: Xios Systems Corp., Ottawa, Ont. Lines: 13 Keywords: uptime 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!