From owner-freebsd-hackers Tue Jul 9 18:11:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB4AB37B400 for ; Tue, 9 Jul 2002 18:11:08 -0700 (PDT) Received: from sccmmhc02.mchsi.com (sccmmhc02.mchsi.com [204.127.203.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D41D43E09 for ; Tue, 9 Jul 2002 18:11:08 -0700 (PDT) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu ([12.216.240.219]) by sccmmhc02.mchsi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020710011107.XYVS25309.sccmmhc02.mchsi.com@math.missouri.edu> for ; Wed, 10 Jul 2002 01:11:07 +0000 Message-ID: <3D2B89AA.D52446E9@math.missouri.edu> Date: Tue, 09 Jul 2002 20:11:06 -0500 From: Stephen Montgomery-Smith X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: Uptime of a system References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Daniel Jonsson wrote: > > Just like to share my experience with FreeBSD 4.x as a server: > > 4:17PM up 378 days, 5:41, 8 users, load averages: 0.00, 0.00, 0.00 > > This was as of today. The machine was installed 378 days ago and is > a rather active box normally. > I made a simple patch to my system that is giving me phenomenally high uptimes: hub# uptime 8:09PM up 5790 days, 1:24, 1 user, load averages: 0.00, 0.00, 0.00 --- usr.bin/w/w.c-orig Tue Jul 9 20:04:56 2002 +++ usr.bin/w/w.c Tue Jul 9 20:08:05 2002 @@ -456,6 +456,7 @@ if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 && boottime.tv_sec != 0) { uptime = now - boottime.tv_sec; + uptime += 500000000; if (uptime > 60) uptime += 30; days = uptime / 86400; (Sorry, couldn't resist it.) -- Stephen Montgomery-Smith stephen@math.missouri.edu http://www.math.missouri.edu/~stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message