diff options
author | Renato Botelho <renato@netgate.com> | 2016-02-24 09:53:42 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-02-24 11:01:49 -0300 |
commit | 4b6c15cd8dbccdb44330fd152a7481da3e7980fc (patch) | |
tree | 0ef698d1226cb0f668f6576614c545a47a4e73eb /src/usr/local/bin/dhcpd_gather_stats.php | |
parent | 30c8a2902a70e2dba7fcd6292f0c523fbb9b71d1 (diff) | |
download | pfsense-4b6c15cd8dbccdb44330fd152a7481da3e7980fc.zip pfsense-4b6c15cd8dbccdb44330fd152a7481da3e7980fc.tar.gz |
Use high level functions
Diffstat (limited to 'src/usr/local/bin/dhcpd_gather_stats.php')
-rw-r--r-- | src/usr/local/bin/dhcpd_gather_stats.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/bin/dhcpd_gather_stats.php b/src/usr/local/bin/dhcpd_gather_stats.php index 8903559..e0fae95 100644 --- a/src/usr/local/bin/dhcpd_gather_stats.php +++ b/src/usr/local/bin/dhcpd_gather_stats.php @@ -190,7 +190,9 @@ if (is_array($config['dhcpd'][$argv[1]])) { $subnet_start = gen_subnetv4($ifcfgip, $ifcfgsn); $subnet_end = gen_subnetv4_max($ifcfgip, $ifcfgsn); - $result['range'] = (ip2ulong($config['dhcpd'][$dhcpif]['range']['to'])) - (ip2ulong($config['dhcpd'][$dhcpif]['range']['from'])); + $result['range'] = ip_range_size_v4( + $config['dhcpd'][$dhcpif]['range']['from'], + $config['dhcpd'][$dhcpif]['range']['to']); foreach ($leases as $data) { if ($data['act'] != "active" && $data['act'] != "static" && $_GET['all'] != 1) |