summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 759c544)
raw | patch | inline | side by side (parent: 759c544)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 14:51:26 +0000 (16:51 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 13 May 2008 14:51:26 +0000 (16:51 +0200) |
contrib/cussh.pl | patch | blob | history |
diff --git a/contrib/cussh.pl b/contrib/cussh.pl
index 65c634e0f8637dc57c34d8812645639b3a7fad13..d4126bfdeeaaaff09bd99d0f497a6472c793d351 100755 (executable)
--- a/contrib/cussh.pl
+++ b/contrib/cussh.pl
print $$string . $/;
my ($h, $p, $pi, $t, $ti) =
+<<<<<<< collectd-4.3:contrib/cussh.pl
$$string =~ m/^(\w+)\/(\w+)(?:-(\w+))?\/(\w+)(?:-(\w+))?\s+/;
+=======
+ $$string =~ m#^([^/]+)/([^/-]+)(?:-([^/]+))?/([^/-]+)(?:-([^/]+))?\s*#;
+>>>>>>> local:contrib/cussh.pl
$$string = $';
return if ((! $h) || (! $p) || (! $t));
($id{'host'}, $id{'plugin'}, $id{'type'}) = ($h, $p, $t);
- $id{'plugin_instance'} = $pi if ($pi);
- $id{'type_instance'} = $ti if ($ti);
+ $id{'plugin_instance'} = $pi if defined ($pi);
+ $id{'type_instance'} = $ti if defined ($ti);
return \%id;
}