Article View: net.sources.bugs
Article #841Bug in uptime
From: Greg Franks
Date: Thu, 23 Oct 1986 15:53
Date: Thu, 23 Oct 1986 15:53
13 lines
811 bytes
811 bytes
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!
Technical Details
Message-ID:
<343@xios.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!dciem!nrcaer!xios!gregShow Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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