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

@@ -42,7 +42,7 @@ if ($device['os'] != 'Snom') {
$rrd_def = array();
$fields = array();
foreach ($oids as $oid) {
$oid_ds = truncate($oid, 19, '');
$oid_ds = substr($oid, 0, 19);
$rrd_def[] = "DS:$oid_ds:COUNTER:600:U:100000000000";
$fields[$oid] = isset($data[0][$oid]) ? $data[0][$oid] : 'U';
}