diff options
| author | Matthias Viehweger | 2012-10-20 00:42:04 +0200 |
|---|---|---|
| committer | Matthias Viehweger | 2012-10-20 00:42:04 +0200 |
| commit | addc57e2194a744b0c4916dc705bb8e34a32f352 (patch) | |
| tree | 3f47755ee413901988c88896170dac306854ae41 | |
| parent | plugin: add powerdns plugin (diff) | |
| download | apt-panopticon_cgp-addc57e2194a744b0c4916dc705bb8e34a32f352.zip apt-panopticon_cgp-addc57e2194a744b0c4916dc705bb8e34a32f352.tar.gz apt-panopticon_cgp-addc57e2194a744b0c4916dc705bb8e34a32f352.tar.bz2 apt-panopticon_cgp-addc57e2194a744b0c4916dc705bb8e34a32f352.tar.xz | |
change whitespace, indentation or line-breaks
| -rw-r--r-- | inc/collectd.inc.php | 8 | ||||
| -rw-r--r-- | 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) { | |||
| 30 | $files = glob("*/*.rrd"); | 30 | $files = glob("*/*.rrd"); |
| 31 | if (!$files) | 31 | if (!$files) |
| 32 | return false; | 32 | return false; |
| 33 | 33 | ||
| 34 | $data = array(); | 34 | $data = array(); |
| 35 | foreach($files as $item) { | 35 | foreach($files as $item) { |
| 36 | preg_match('` | 36 | preg_match('` |
| @@ -73,7 +73,7 @@ function collectd_plugins($host) { | |||
| 73 | if (!in_array($item['p'], $plugins)) | 73 | if (!in_array($item['p'], $plugins)) |
| 74 | $plugins[] = $item['p']; | 74 | $plugins[] = $item['p']; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | return $plugins; | 77 | return $plugins; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| @@ -105,7 +105,7 @@ function collectd_plugindetail($host, $plugin, $detail, $where=NULL) { | |||
| 105 | 105 | ||
| 106 | if (empty($return)) | 106 | if (empty($return)) |
| 107 | return false; | 107 | return false; |
| 108 | 108 | ||
| 109 | return $return; | 109 | return $return; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| @@ -171,7 +171,7 @@ function build_url($base, $items, $s=NULL) { | |||
| 171 | 171 | ||
| 172 | if (!is_array($items)) | 172 | if (!is_array($items)) |
| 173 | return false; | 173 | return false; |
| 174 | 174 | ||
| 175 | if (!is_numeric($s)) | 175 | if (!is_numeric($s)) |
| 176 | $s = $CONFIG['time_range']['default']; | 176 | $s = $CONFIG['time_range']['default']; |
| 177 | 177 | ||
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 { | |||
| 153 | $this->rainbow_colors(); | 153 | $this->rainbow_colors(); |
| 154 | 154 | ||
| 155 | $graphdata = $this->rrd_gen_graph(); | 155 | $graphdata = $this->rrd_gen_graph(); |
| 156 | 156 | ||
| 157 | if(!$debug) { | 157 | if(!$debug) { |
| 158 | # caching | 158 | # caching |
| 159 | if (is_numeric($this->cache) && $this->cache > 0) | 159 | if (is_numeric($this->cache) && $this->cache > 0) |
