From 078cfa70db475e82e06e9a6677e813cd4bd5c431 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 29 Dec 2013 16:49:29 +0100 Subject: fix heigth -> height typo --- conf/config.php | 4 ++-- detail.php | 2 +- graph.php | 2 +- type/Default.class.php | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/conf/config.php b/conf/config.php index fc10a43..5ce761b 100644 --- a/conf/config.php +++ b/conf/config.php @@ -59,10 +59,10 @@ $CONFIG['page_refresh'] = ''; # default width/height of the graphs $CONFIG['width'] = 400; -$CONFIG['heigth'] = 175; +$CONFIG['height'] = 175; # default width/height of detailed graphs $CONFIG['detail-width'] = 800; -$CONFIG['detail-heigth'] = 350; +$CONFIG['detail-height'] = 350; # collectd's unix socket (unixsock plugin) # enabled: 'unix:///var/run/collectd-unixsock' diff --git a/detail.php b/detail.php index 5bf2883..524c708 100644 --- a/detail.php +++ b/detail.php @@ -9,7 +9,7 @@ require_once 'inc/collectd.inc.php'; if (empty($_GET['x'])) $_GET['x'] = $CONFIG['detail-width']; if (empty($_GET['y'])) - $_GET['y'] = $CONFIG['detail-heigth']; + $_GET['y'] = $CONFIG['detail-height']; $host = validate_get(GET('h'), 'host'); $plugin = validate_get(GET('p'), 'plugin'); diff --git a/graph.php b/graph.php index 31f697c..37e442a 100644 --- a/graph.php +++ b/graph.php @@ -5,7 +5,7 @@ require_once 'inc/functions.inc.php'; $plugin = validate_get(GET('p'), 'plugin'); $width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; -$heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; +$height = empty($_GET['y']) ? $CONFIG['height'] : $_GET['y']; if (validate_get(GET('h'), 'host') === NULL) { error_log('CGP Error: plugin contains unknown characters'); diff --git a/type/Default.class.php b/type/Default.class.php index 8704d06..5e19e73 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -18,7 +18,7 @@ class Type_Default { var $rrd_format; var $scale = 1; var $width; - var $heigth; + var $height; var $graph_type; var $negative_io; var $graph_smooth; @@ -37,8 +37,8 @@ class Type_Default { $this->identifiers = $this->file2identifier($this->files); $this->width = GET('x'); if (empty($this->width)) $this->width = $config['width']; - $this->heigth = GET('y'); - if (empty($this->heigth)) $this->heigth = $config['heigth']; + $this->height = GET('y'); + if (empty($this->height)) $this->height = $config['height']; $this->graph_type = $config['graph_type']; $this->negative_io = $config['negative_io']; $this->graph_smooth = $config['graph_smooth']; @@ -227,7 +227,7 @@ class Type_Default { if ($this->graph_smooth) $rrdgraph[] = '-E'; $rrdgraph[] = sprintf('-w %d', is_numeric($this->width) ? $this->width : 400); - $rrdgraph[] = sprintf('-h %d', is_numeric($this->heigth) ? $this->heigth : 175); + $rrdgraph[] = sprintf('-h %d', is_numeric($this->height) ? $this->height : 175); $rrdgraph[] = '-l 0'; $rrdgraph[] = sprintf('-t "%s on %s"', $this->rrd_title, $this->args['host']); if ($this->rrd_vertical) -- cgit v1.1