Date: Thu, 24 Apr 2003 02:55:41 +0200 From: "Simon L. Nielsen" <simon@nitro.dk> To: Tim Kientzle <kientzle@acm.org> Cc: current@freebsd.org Subject: Re: 1Jan 70 -- FreeBSD 5.0-RELEASE + Current Message-ID: <20030424005540.GA1811@nitro.dk> In-Reply-To: <3EA72D85.4030205@acm.org> References: <DCECJGCCEMJIDCEAHBEEIEOHCBAA.adrian@nu-earth.net> <200304231644.50685.cbiffle@safety.net> <3EA72D85.4030205@acm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--oC1+HKm2/end4ao3
Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/"
Content-Disposition: inline
--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2003.04.23 17:19:17 -0700, Tim Kientzle wrote:
> This has been discussed on this list several
> times: those processes are all started
> before the kernel has initialized the time.
>=20
> Because FreeBSD has to read the disk
> before it can know whether the hardware clock
> is in UTC or local time, it's hard to really
> do much better than this. (I suppose you
> could edit 'ps' to display such times
> as '-'; that might be less misleading.)
This is actually a very small patch.
Note 3600 is chosen rather arbitrarily since I don't really know how
long into the boot process the kernel threads can be started (since I
would guess 0 is the very beginning of the boot). All my threads had
time time 1.
--=20
Simon L. Nielsen
--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="ps-print1970.patch"
Content-Transfer-Encoding: quoted-printable
Index: print.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/bin/ps/print.c,v
retrieving revision 1.82
diff -u -d -r1.82 print.c
--- print.c 15 Apr 2003 18:49:20 -0000 1.82
+++ print.c 24 Apr 2003 00:48:36 -0000
@@ -387,7 +387,7 @@
char buf[100];
=20
v =3D ve->var;
- if (!k->ki_valid) {
+ if (!k->ki_valid || k->ki_p->ki_start.tv_sec < 3600) {
(void)printf("%-*s", v->width, "-");
return;
}
--TB36FDmn/VVEgNH/--
--oC1+HKm2/end4ao3
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)
iD8DBQE+pzYM8kocFXgPTRwRAqFkAJ4uLnyMyGt81p88geAIB7ZT1yasoQCeOnHI
j/e1NBlRVX1JLfgoAKRpIPE=
=7K3c
-----END PGP SIGNATURE-----
--oC1+HKm2/end4ao3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030424005540.GA1811>
