mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Remove inappropriate usages of truncate() (#5028)
Where truncate() is used as substr(), replace with substr()
This commit is contained in:
committed by
Neil Lathwood
parent
e469aa97b0
commit
a83e126b40
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user