diff options
author | Ermal <eri@pfsense.org> | 2010-12-14 22:59:53 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-14 22:59:53 +0000 |
commit | 1d164dd444cb1af57e0adef0b0bf46be263dcf41 (patch) | |
tree | 497878a8ba3a27c31bbad2c9f3428490877a00a4 /usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | |
parent | f5c05fcc613728bc5a18898b4799e8e5a8df7529 (diff) | |
download | pfsense-1d164dd444cb1af57e0adef0b0bf46be263dcf41.zip pfsense-1d164dd444cb1af57e0adef0b0bf46be263dcf41.tar.gz |
Provide a default value to the function for converting kb/Mb to coeficient for math.
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc index b5f8d63..99f5c35 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc @@ -1348,7 +1348,7 @@ function apply_all_choosen_items() { write_config(); } -function wizard_get_bandwidthtype_scale($type) { +function wizard_get_bandwidthtype_scale($type = "b") { switch ($type) { case "Gb": $factor = 1000 * 1000 * 1000; @@ -1364,7 +1364,7 @@ function wizard_get_bandwidthtype_scale($type) { $factor = 1; break; } - return floatval($factor); + return intval($factor); } ?> |