From addc57e2194a744b0c4916dc705bb8e34a32f352 Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Sat, 20 Oct 2012 00:42:04 +0200 Subject: change whitespace, indentation or line-breaks --- inc/collectd.inc.php | 8 ++++---- type/Default.class.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 3c016af..3aef6b8 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php @@ -30,7 +30,7 @@ function collectd_plugindata($host, $plugin=NULL) { $files = glob("*/*.rrd"); if (!$files) return false; - + $data = array(); foreach($files as $item) { preg_match('` @@ -73,7 +73,7 @@ function collectd_plugins($host) { if (!in_array($item['p'], $plugins)) $plugins[] = $item['p']; } - + return $plugins; } @@ -105,7 +105,7 @@ function collectd_plugindetail($host, $plugin, $detail, $where=NULL) { if (empty($return)) return false; - + return $return; } @@ -171,7 +171,7 @@ function build_url($base, $items, $s=NULL) { if (!is_array($items)) return false; - + if (!is_numeric($s)) $s = $CONFIG['time_range']['default']; diff --git a/type/Default.class.php b/type/Default.class.php index dec583b..00ef0e4 100644 --- a/type/Default.class.php +++ b/type/Default.class.php @@ -153,7 +153,7 @@ class Type_Default { $this->rainbow_colors(); $graphdata = $this->rrd_gen_graph(); - + if(!$debug) { # caching if (is_numeric($this->cache) && $this->cache > 0) -- cgit v1.1