refactor: Remove inappropriate usages of truncate() (#5028)

Where truncate() is used as substr(), replace with substr()
This commit is contained in:
Tony Murray
2016-11-20 05:12:25 -06:00
committed by Neil Lathwood
parent e469aa97b0
commit a83e126b40
27 changed files with 34 additions and 34 deletions

View File

@@ -89,7 +89,7 @@ if ($device['os_group'] == 'cisco') {
$rrd_name = array('ipsectunnel', $address);
$rrd_def = array();
foreach ($oids as $oid) {
$oid_ds = truncate(str_replace('cipSec', '', $oid), 19, '');
$oid_ds = substr(str_replace('cipSec', '', $oid), 0, 19);
$rrd_def[] = "DS:$oid_ds:COUNTER:600:U:1000000000";
}