diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index d7fe5b323..8912bb636 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -763,8 +763,8 @@ function get_client_ip() {
function shorten_interface_type($string) {
return str_ireplace(
- array('FastEthernet','GigbitEthernet','TenGigabitEthernet','Port-Channel','Ethernet'),
- array('Fa','Gi','Te','Po','Eth'),
+ array('FastEthernet','TenGigabitEthernet','GigabitEthernet','Port-Channel','Ethernet'),
+ array('Fa','Te','Gi','Po','Eth'),
$string
);
}
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;