summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e612309)
raw | patch | inline | side by side (parent: e612309)
author | Florian Forster <octo@huhu.verplant.org> | |
Sun, 24 Feb 2008 14:40:30 +0000 (15:40 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sun, 24 Feb 2008 14:40:30 +0000 (15:40 +0100) |
src/utils_tail_match.c | patch | blob | history |
diff --git a/src/utils_tail_match.c b/src/utils_tail_match.c
index 06412b9e59446e185b19e43c199892c5893fb6e9..34fe2dced95c91fc5a493dc71a724248ceec45a1 100644 (file)
--- a/src/utils_tail_match.c
+++ b/src/utils_tail_match.c
if (match_value == NULL)
return (-1);
- values[0] = match_value->value;
+ if ((match_value->ds_type & UTILS_MATCH_DS_TYPE_GAUGE)
+ && (match_value->values_num == 0))
+ values[0].gauge = NAN;
+ else
+ values[0] = match_value->value;
vl.values = values;
vl.values_len = 1;