aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorManuel CISSÉ2010-02-23 17:17:32 +0100
committerPim van den Berg2010-03-01 20:55:47 +0100
commitbda2a1f253cd37eb2b79204c6f526e52478e3244 (patch)
treeb44cca11abcdf9c3046b3588bfc97b771c2429a6
parentadd the possibility to generate and use default colors for graphs (diff)
downloadapt-panopticon_cgp-bda2a1f253cd37eb2b79204c6f526e52478e3244.zip
apt-panopticon_cgp-bda2a1f253cd37eb2b79204c6f526e52478e3244.tar.gz
apt-panopticon_cgp-bda2a1f253cd37eb2b79204c6f526e52478e3244.tar.bz2
apt-panopticon_cgp-bda2a1f253cd37eb2b79204c6f526e52478e3244.tar.xz
correct a bug when graphing multiple DS in multiple files
-rw-r--r--type/Default.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/type/Default.class.php b/type/Default.class.php
index 48460f3..07e17aa 100644
--- a/type/Default.class.php
+++ b/type/Default.class.php
@@ -118,9 +118,9 @@ class Type_Default {
118 $this->args['plugin'], strlen($this->args['pinstance']) ? '-' : '', $this->args['pinstance'], 118 $this->args['plugin'], strlen($this->args['pinstance']) ? '-' : '', $this->args['pinstance'],
119 $this->args['type'], strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance']); 119 $this->args['type'], strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance']);
120 120
121 $wildcard = strlen($this->args['tinstance']) ? '' : '*'; 121 $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*';
122 122
123 $files = glob($this->datadir .'/'. $identifier . $wildcard . '.rrd'); 123 $files = glob($this->datadir .'/'. $identifier . $wildcard . 'rrd');
124 124
125 return $files; 125 return $files;
126 } 126 }