diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-07 20:22:06 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-07 20:22:06 +0100 |
commit | f99f51a9f0682d0b8af906ed4d7c8f37aeea90aa (patch) | |
tree | 6cb221b385a0e6f8e4f460c869b0e74adc37d9df /usr/local | |
parent | ba0bc25810d6e2a41e55ed5062b85d4580453b83 (diff) | |
download | pfsense-f99f51a9f0682d0b8af906ed4d7c8f37aeea90aa.zip pfsense-f99f51a9f0682d0b8af906ed4d7c8f37aeea90aa.tar.gz |
split is deprecated move to explode
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/bin/3gstats.php | 4 |
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); |