summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-07 20:22:06 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-07 20:22:16 +0100
commit3c36413133de3a1c731338d7f40dad7148d5f148 (patch)
treeb092a13e23f3d4723e0c2d8785ec93962cbfa827 /usr
parentf3ab0e7468629424a5b02dd7c81076ae7d280f90 (diff)
downloadpfsense-3c36413133de3a1c731338d7f40dad7148d5f148.zip
pfsense-3c36413133de3a1c731338d7f40dad7148d5f148.tar.gz
split is deprecated move to explode
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/bin/3gstats.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/bin/3gstats.php b/usr/local/bin/3gstats.php
index 02f1b17..a8a8fec 100755
--- a/usr/local/bin/3gstats.php
+++ b/usr/local/bin/3gstats.php
@@ -40,7 +40,7 @@ while(true) {
$string = fgets($handle, 256);
$elements = array();
- $elements = split(":", $string);
+ $elements = explode(':', $string);
$elements[0] = trim($elements[0]);
$elements[1] = trim($elements[1]);
@@ -59,7 +59,7 @@ while(true) {
break;
case "^DSFLOWRPT":
$items = array();
- $items = split(",", $elements[1]);
+ $items = explode(',', $elements[1]);
$record['time'] = hexdec($items[0]);
$record['upstream'] = round((floatval(hexdec($items[1])) * 8) /1024);
$record['downstream'] = round((floatval(hexdec($items[2])) * 8) /1024);
OpenPOWER on IntegriCloud