bindings/erlang/collectd.erl: Use improved syntax for "dispatch_values".
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 08:52:26 +0000 (09:52 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 08:52:26 +0000 (09:52 +0100)
bindings/erlang/collectd.erl

index cee7c1b..1860a50 100644 (file)
@@ -3,7 +3,7 @@
 
 -include("collectd.hrl").
 
-dispatch_values (VL) when is_record (VL, value_list) ->
+dispatch_values (#value_list{} = VL) ->
        call_cnode (dispatch_values, VL).
 
 register_read (Callback) ->