summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-20 22:35:15 +0000
committerErmal <eri@pfsense.org>2010-12-21 16:38:29 +0000
commitdbdcaef4f3b9579b924a102c130764792cffbe23 (patch)
treea7dc9dbe46c6f79031c4c68b38515f9f93902d89 /usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
parentc7cfbbd8a833f22726935dc6cd31024baac30e41 (diff)
downloadpfsense-dbdcaef4f3b9579b924a102c130764792cffbe23.zip
pfsense-dbdcaef4f3b9579b924a102c130764792cffbe23.tar.gz
Use 1024 not 1000 in conversion.
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc')
-rwxr-xr-xusr/local/www/wizards/traffic_shaper_wizard_dedicated.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index 66b4716..04d4474 100755
--- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -1567,13 +1567,13 @@ function apply_all_choosen_items() {
function wizard_get_bandwidthtype_scale($type = "b") {
switch ($type) {
case "Gb":
- $factor = 1000 * 1000 * 1000;
+ $factor = 1024 * 1024 * 1024;
break;
case "Mb":
- $factor = 1000 * 1000;
+ $factor = 1024 * 1024;
break;
case "Kb":
- $factor = 1000;
+ $factor = 1024;
break;
case "b":
default:
OpenPOWER on IntegriCloud