summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b041fa0)
raw | patch | inline | side by side (parent: b041fa0)
author | Florian Forster <octo@noris.net> | |
Wed, 16 Sep 2009 09:47:42 +0000 (11:47 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 16 Sep 2009 09:47:42 +0000 (11:47 +0200) |
… if both are present. Otherwise, use just the one that is available.
contrib/collection3/lib/Collectd/Graph/Type.pm | patch | blob | history |
diff --git a/contrib/collection3/lib/Collectd/Graph/Type.pm b/contrib/collection3/lib/Collectd/Graph/Type.pm
index 01c2417c39db7bab0e5a74fbd6f91b4724e7c60a..81add728382898ea513f68d757774f161d7c07ed 100644 (file)
my $type_instance = $ident->{'type_instance'};
my $instance;
- if (defined $type_instance)
+ if ((defined $type_instance) && (defined $plugin_instance))
+ {
+ $instance = "$plugin_instance/$type_instance";
+ }
+ elsif (defined $type_instance)
{
$instance = $type_instance;
}