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

@@ -4,8 +4,8 @@
// args: ds_in, ds_out, rrd_filename, bg, legend, from, to, width, height, inverse, percentile
require 'includes/graphs/common.inc.php';
$unit_text = str_pad(truncate($unit_text, 18, ''), 18);
$line_text = str_pad(truncate($line_text, 12, ''), 12);
$unit_text = str_pad(substr($unit_text, 0, 18), 18);
$line_text = str_pad(substr($line_text, 0, 12), 12);
if ($multiplier) {
if (empty($multiplier_action)) {