diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-25 16:30:23 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-25 16:30:23 +0000 |
commit | 6b0e2443f3fc4f56d9ae666c996b3e91051c2304 (patch) | |
tree | 4e9d0a62f4f35b20b0a9d04c16586240c990bc73 /sbin/pfctl/parse.y | |
parent | e8fe94d8cdfd94b41e06b96953a8a007945e47f4 (diff) |
1Kb = 1000b, not 1024; as discussed with kjc@ and theo
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 4f3d061a50f..edf9681bd6f 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.212 2002/11/25 15:50:58 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.213 2002/11/25 16:30:22 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -638,11 +638,11 @@ bandwidth : /* empty */ { if (!strcmp(cp, "b")) ; else if (!strcmp(cp, "Kb")) - bps *= 1024; + bps *= 1000; else if (!strcmp(cp, "Mb")) - bps *= 1024 * 1024; + bps *= 1000 * 1000; else if (!strcmp(cp, "Gb")) - bps *= 1024 * 1024 * 1024; + bps *= 1000 * 1000 * 1000; else if (!strcmp(cp, "%")) { if (bps < 0 || bps > 100) { yyerror("bandwidth spec " |