Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Apr 2013 15:40:00 GMT
From:      hostmaster@whois.gts.net
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/92412: [libexec] [patch] rpc.rstatd reports bogus packets/per/second info
Message-ID:  <201304141540.r3EFe0kV089200@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/92412; it has been noted by GNATS.

From: hostmaster@whois.gts.net
To: "G. Paul Ziemba" <p-fbsd-bugs@ziemba.us>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/92412: [libexec] [patch] rpc.rstatd reports bogus
 packets/per/second info
Date: Sun, 14 Apr 2013 11:18:41 -0400 (EDT)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
 
 ---559023410-420219909-1365952722=:1386
 Content-Type: TEXT/PLAIN; charset=US-ASCII
 
 On Sun, 14 Apr 2013, G. Paul Ziemba wrote:
 
 |Attached is an updated patch for 64-bit systems. I hope someone
 |can apply it to HEAD - fix has been waiting for some years. Please?
 
 
 	here's what i use, which saves a call to
 	gettimeofday() and gives slightly more
 	accurate valuse for v_intr
 
 
 Bruce Becker			+1 416 410 0879
 GTS Network Administration	Toronto, Ont.
 Email:	hostmaster@GTS.Infra-service.CA
 ---559023410-420219909-1365952722=:1386
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=rstat_proc.c.newer.diff
 Content-Transfer-Encoding: BASE64
 Content-ID: <alpine.GSO.2.00.1304141118410.1386@twin2.gts.net>
 Content-Description: 
 Content-Disposition: attachment; filename=rstat_proc.c.newer.diff
 
 LS0tIHJzdGF0X3Byb2MuYy5vcmlnCTIwMDktMDgtMDMgMDQ6MTM6MDYuMDAw
 MDAwMDAwIC0wNDAwDQorKysgcnN0YXRfcHJvYy5jCTIwMTMtMDQtMTQgMTE6
 MTE6MTIuMDAwMDAwMDAwIC0wNDAwDQpAQCAtMTI1LDYgKzEyNSw3IEBADQog
 ICAgIGlmICghIHN0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udHZfdXNlYyA9
 IHRtLnR2X3VzZWM7DQogCWFsYXJtKDEpOw0KIH0NCiANCkBAIC00NzQsMyAr
 NDc2LDQgQEANCiAgICAgICAgIGlmIChmcm9tX2luZXRkKQ0KICAgICAgICAg
 ICAgICAgICBleGl0KDApOw0KIH0NCisNCg==
 
 ---559023410-420219909-1365952722=:1386--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304141540.r3EFe0kV089200>