Permalink
Browse files

collectd_values: omit empty values

  • Loading branch information...
1 parent 7062eb7 commit 08a585d4170ca908fd590f212e9337d876b90849 @astro committed Aug 10, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/collectd_values.erl
View
@@ -100,7 +100,9 @@ inc_counter(V, Values) ->
to_list(Values) ->
lists:foldl(
- fun({Type, V1}, R1) ->
+ fun({_, []}, R1) ->
+ R1;
+ ({Type, V1}, R1) ->
R1 ++
[{type, Type}] ++
lists:foldl(

0 comments on commit 08a585d

Please sign in to comment.