From b1f866709a3ce30678e183e08d424247e761ca44 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Tue, 29 Sep 2009 22:07:01 +0200 Subject: make width and heigth of graphs configurable These configuration options have been added: - width - heigth - detail-width - detail-heigth --- detail.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'detail.php') diff --git a/detail.php b/detail.php index d8bd4eb..47ce197 100644 --- a/detail.php +++ b/detail.php @@ -4,6 +4,12 @@ require_once 'conf/common.inc.php'; require_once 'inc/html.inc.php'; require_once 'inc/collectd.inc.php'; +# use width/height from config if nothing is given +if (empty($_GET['x'])) + $_GET['x'] = $CONFIG['detail-width']; +if (empty($_GET['y'])) + $_GET['y'] = $CONFIG['detail-heigth']; + $host = $_GET['h']; $plugin = $_GET['p']; $pinstance = $_GET['pi']; -- cgit v1.1