From 442f0522651e6b10648975de18824f50ba56b331 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Thu, 18 Jun 2015 15:45:52 +0200 Subject: [PATCH] Shorten the label shown on graph legend --- html/includes/graphs/device/bits.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/graphs/device/bits.inc.php b/html/includes/graphs/device/bits.inc.php index 19fe0d67c..64d4c0398 100644 --- a/html/includes/graphs/device/bits.inc.php +++ b/html/includes/graphs/device/bits.inc.php @@ -36,7 +36,7 @@ foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($devic $rrd_filenames[] = $rrd_filename; $rrd_list[$i]['filename'] = $rrd_filename; - $rrd_list[$i]['descr'] = $port['label']; + $rrd_list[$i]['descr'] = shorten_interface_type($port['label']); $rrd_list[$i]['descr_in'] = $port['label']; $rrd_list[$i]['descr_out'] = $port['ifAlias']; $rrd_list[$i]['ds_in'] = $ds_in;