Date: Mon, 15 Mar 2010 18:26:10 +0000 (UTC) From: Luigi Rizzo <luigi@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205181 - head/sbin/ipfw Message-ID: <201003151826.o2FIQATv040664@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: luigi Date: Mon Mar 15 18:26:09 2010 New Revision: 205181 URL: http://svn.freebsd.org/changeset/base/205181 Log: accept lower case m as a synonym for Mega (bit/s or bytes/s). Modified: head/sbin/ipfw/dummynet.c Modified: head/sbin/ipfw/dummynet.c ============================================================================== --- head/sbin/ipfw/dummynet.c Mon Mar 15 18:22:19 2010 (r205180) +++ head/sbin/ipfw/dummynet.c Mon Mar 15 18:26:09 2010 (r205181) @@ -535,7 +535,7 @@ read_bandwidth(char *arg, int *bandwidth if (*end == 'K' || *end == 'k') { end++; bw *= 1000; - } else if (*end == 'M') { + } else if (*end == 'M' || *end == 'm') { end++; bw *= 1000000; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003151826.o2FIQATv040664>