From fbceedf3b7c18f56cb016e04d1e9ba2c4170303b Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Tue, 26 Nov 2013 11:21:21 +1000 Subject: [PATCH] Clean up sizing of top 10 graph --- html/css/styles.css | 2 +- html/includes/front/top_ports.inc.php | 5 ++++- html/includes/functions.inc.php | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 4d9542937..6e72a0cb1 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -514,7 +514,7 @@ a.list-device-disabled, a.list-device-disabled:visited { .right-2-col-fixed { display: table-cell; width: 350px; - height: 250px; + height: 300px; float: right; /* vertical-align: top;*/ diff --git a/html/includes/front/top_ports.inc.php b/html/includes/front/top_ports.inc.php index 6f5d3cbc4..e86e768f1 100644 --- a/html/includes/front/top_ports.inc.php +++ b/html/includes/front/top_ports.inc.php @@ -29,7 +29,10 @@ $query = " echo("Top $top ports (last $minutes minutes)"); echo(''); foreach (dbFetchRows($query) as $result) { - echo(''); + echo(''); } echo('
'.generate_device_link($result).''.generate_port_link($result).''.generate_port_link($result, generate_port_thumbnail($result)).'
'. + generate_device_link($result, shorthost($result['hostname'])). + ''.generate_port_link($result). + ''.generate_port_link($result, generate_port_thumbnail($result)).'
'); diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index ab9541d6c..458a5436b 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -465,7 +465,7 @@ function generate_port_thumbnail($port) $port['from'] = $config['time']['day']; $port['to'] = $config['time']['now']; $port['width'] = 150; - $port['height'] = 19; + $port['height'] = 21; return generate_port_image($port); }