diff options
author | Bill Marquette <billm@pfsense.org> | 2005-08-22 04:24:47 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-08-22 04:24:47 +0000 |
commit | dd5b2ec6d5fdd2886e9671096e08565b385062b0 (patch) | |
tree | ce7df6a5bbabd6b1c5b7a59e1739735f3d9a8ef3 /usr/local/www | |
parent | 4f3c4086f19f47534c9eda8bf68e4e2a9ac9e533 (diff) | |
download | pfsense-dd5b2ec6d5fdd2886e9671096e08565b385062b0.zip pfsense-dd5b2ec6d5fdd2886e9671096e08565b385062b0.tar.gz |
no need for sprintf, just eats more cpu and memory
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 92a7b5e..a9c9dd1 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -69,11 +69,7 @@ staticmaps_sort($if); $a_maps = &$config['dhcpd'][$if]['staticmap']; function is_inrange($test, $start, $end) { - $o_test = sprintf("%u", ip2long($test)); - $o_start = sprintf("%u", ip2long($start)); - $o_end = sprintf("%u", ip2long($end)); - - if ( ($o_test < $o_end) && ($o_test > $o_start) ) + if ( (ip2long($test) < ip2long($end)) && (ip2long($test) > ip2long($start)) ) return true; else return false; |