From owner-freebsd-stable Wed Sep 27 5:30:29 2000 Delivered-To: freebsd-stable@freebsd.org Received: from jamus.xpert.com (jamus.xpert.com [199.203.132.17]) by hub.freebsd.org (Postfix) with ESMTP id 6F56037B424 for ; Wed, 27 Sep 2000 05:30:18 -0700 (PDT) Received: from roman (helo=localhost) by jamus.xpert.com with local-esmtp (Exim 3.12 #5) id 13eIF7-0005w2-00; Wed, 27 Sep 2000 16:31:29 +0200 Date: Wed, 27 Sep 2000 16:31:29 +0200 (IST) From: Roman Shterenzon To: Jeroen Ruigrok van der Werven Cc: freebsd-stable@FreeBSD.ORG Subject: Re: negative bytes/sec? In-Reply-To: <20000927142537.L10657@lucifer.bart.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 27 Sep 2000, Jeroen Ruigrok van der Werven wrote: > -On [20000927 01:40], Roman Shterenzon (roman@xpert.com) wrote: > >i586_bzero() bandwidth = -1704293721 bytes/sec > >bzero() bandwidth = 132802124 bytes/sec > > Try this, > > it worked for Maxim Sobolev, apparantly the data type is too small to > adequately store the calculation on newer systems: > > --- npx.c.orig Sat May 15 01:14:13 1999 > +++ npx.c Sat May 15 02:01:51 1999 > @@ -696,8 +696,8 @@ > if (usec <= 0) > usec = 1; > if (bootverbose) > - printf("%s bandwidth = %ld bytes/sec\n", > - funcname, (long)(BUFSIZE * (int64_t)1000000 / usec)); > + printf("%s bandwidth = %ld Kbytes/sec\n", > + funcname, (long)(BUFSIZE * (int64_t)1000000 / (1024*usec))); > free(buf, M_TEMP); > return (usec); > } Yes, that's the obvious solution, but, it's for printf only, isn't it used somewhere else? --Roman Shterenzon, UNIX System Administrator and Consultant [ Xpert UNIX Systems Ltd., Herzlia, Israel. Tel: +972-9-9522361 ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message