diff --git a/html/graph-realtime.php b/html/graph-realtime.php
index 5762a025a..714dafdb4 100755
--- a/html/graph-realtime.php
+++ b/html/graph-realtime.php
@@ -37,7 +37,7 @@ header("Content-type: image/svg+xml");
/********** HTTP GET Based Conf ***********/
$ifnum=@$port['ifIndex']; // BSD / SNMP interface name / number
$ifname=@$port['ifDescr']; //Interface name that will be showed on top right of graph
-$hostname=$device['hostname'];
+$hostname=shorthost($device['hostname']);
/********* Other conf *******/
$scale_type="follow"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas