diff options
| author | Manuel CISSÉ | 2010-02-23 17:17:32 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2010-03-01 20:55:47 +0100 |
| commit | bda2a1f253cd37eb2b79204c6f526e52478e3244 (patch) | |
| tree | b44cca11abcdf9c3046b3588bfc97b771c2429a6 | |
| parent | add the possibility to generate and use default colors for graphs (diff) | |
| download | apt-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.php | 4 |
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 | } |
