summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-14 22:59:53 +0000
committerErmal <eri@pfsense.org>2010-12-14 22:59:53 +0000
commit1d164dd444cb1af57e0adef0b0bf46be263dcf41 (patch)
tree497878a8ba3a27c31bbad2c9f3428490877a00a4 /usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc
parentf5c05fcc613728bc5a18898b4799e8e5a8df7529 (diff)
downloadpfsense-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.inc4
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);
}
?>
OpenPOWER on IntegriCloud