From bda2a1f253cd37eb2b79204c6f526e52478e3244 Mon Sep 17 00:00:00 2001 From: Manuel CISSÉ Date: Tue, 23 Feb 2010 17:17:32 +0100 Subject: correct a bug when graphing multiple DS in multiple files --- type/Default.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'type') 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 { $this->args['plugin'], strlen($this->args['pinstance']) ? '-' : '', $this->args['pinstance'], $this->args['type'], strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance']); - $wildcard = strlen($this->args['tinstance']) ? '' : '*'; + $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*'; - $files = glob($this->datadir .'/'. $identifier . $wildcard . '.rrd'); + $files = glob($this->datadir .'/'. $identifier . $wildcard . 'rrd'); return $files; } -- cgit v1.1