From owner-freebsd-questions Thu Sep 5 13:55:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B7A37B400 for ; Thu, 5 Sep 2002 13:55:25 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 943E743E6A for ; Thu, 5 Sep 2002 13:55:23 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g85KtIki091474; Thu, 5 Sep 2002 15:55:18 -0500 (CDT) (envelope-from dan) Date: Thu, 5 Sep 2002 15:55:18 -0500 From: Dan Nelson To: budsz Cc: FBSDQ Subject: Re: Decimals or fractions in dummynet Message-ID: <20020905205518.GF59085@dan.emsphone.com> References: <20020904154736.GA67509@kumprang.kumprang.or.id> <009701c2545a$9da94060$0200000a@perimeter.co.za> <20020905172703.GA71145@kumprang.kumprang.or.id> <20020905174957.GE59085@dan.emsphone.com> <20020905185250.GA72051@kumprang.kumprang.or.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020905185250.GA72051@kumprang.kumprang.or.id> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In the last episode (Sep 06), budsz said: > On Thu, Sep 05, 2002 at 12:49:57PM -0500, Dan Nelson wrote: > >> Opss..I give wrong example :), I mean without "K": > >> > >> ipfw pipe 1 config bw 3.432bit/s > >> ipfw pipe 2 config bw 3.432bit/s > > > > Do you realize how slow 3 bits/second is? That's one character > > every 2.6 seconds. Are you simulating one of those "TCP/IP over > > carpet static" networks? :) > > Actually, the '3.432' figures are just an example. I want to know if > it's ok to write "Decimals or fractions" format in dummynet. Is my > example valid?, because I didn't find it in any manual. The code uses strtoul to parse the number, so fractions are not processed. In general, you can assume that numeric arguments to unix commands are integer unless the documentation says otherwise. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message