Date: Sat, 18 Nov 1995 21:33:39 -0800 From: Bill Paul <wpaul> To: CVS-commiters, cvs-usrbin Subject: cvs commit: src/usr.bin/rup rup.c Message-ID: <199511190533.VAA14170@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 95/11/18 21:33:36 Modified: usr.bin/rup rup.c Log: Rup uses tm_yday in its uptime printout, but ignores tm_year. This means that if you do an rup on a machine that's been running longer than a year, you get the wrong day count. Now we factor in 365 * (curtime.tm_year - boottime.tm_year) to get the correct value. (I noticed this while running rup on a SunOS machine I have that's been up 525 days. My FreeBSD machines all said it had only been up for 160 (525-365) days. :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511190533.VAA14170>