add icon in speed chart tooltip

This commit is contained in:
MaysWind 2017-10-22 16:40:23 +08:00
parent 2b2069bf66
commit a37a228e22

View file

@ -36,7 +36,7 @@
var uploadSpeed = $filter('readableVolume')(params[0].value) + '/s';
var downloadSpeed = $filter('readableVolume')(params[1].value) + '/s';
return '<div>' + time + '</div>'
return '<div><i class="fa fa-clock-o"></i> ' + time + '</div>'
+ '<div><i class="icon-download fa fa-arrow-down"></i> ' + downloadSpeed +'</div>'
+ '<div><i class="icon-upload fa fa-arrow-up"></i> ' + uploadSpeed + '</div>';
}