summaryrefslogtreecommitdiff
path: root/templates/themes
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-06-08 00:11:14 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-06-08 00:11:14 +1000
commit22f4e043ca927bc85eac28b53f5636096f67522c (patch)
treedfe71a86c537a35792439decc8b31e2c67c81a1c /templates/themes
parent8dc3085194a7831fc30ee0c5840df774457ddb5f (diff)
exclude boards from combined graph
Diffstat (limited to 'templates/themes')
-rw-r--r--templates/themes/rrdtool/theme.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/themes/rrdtool/theme.php b/templates/themes/rrdtool/theme.php
index 43a9abd0..39f950ea 100644
--- a/templates/themes/rrdtool/theme.php
+++ b/templates/themes/rrdtool/theme.php
@@ -22,6 +22,8 @@
$this->interval = 120;
$this->height = 150;
$this->width = 700;
+ // exclude boards from the "combiend" graph
+ $this->combined_exclude = Array('dome9001', 'mod', 'test');
if($action == 'cron') {
if(!file_exists($settings['path']))
@@ -123,6 +125,8 @@
$cc = 0;
foreach($this->boards as &$board) {
+ if(in_array($board, $this->combined_exclude))
+ continue;
$color = str_pad(dechex($red*85), 2, '0', STR_PAD_LEFT) .
str_pad(dechex($green*85), 2, '0', STR_PAD_LEFT) .
str_pad(dechex($blue*85), 2, '0', STR_PAD_LEFT);