refactor: re-use graphite_msg cons/3
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 23 Sep 2015 13:54:52 +0000 (09:54 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Thu, 24 Sep 2015 01:50:31 +0000 (21:50 -0400)
src/beam_stats_msg_graphite.erl

index 8c13d60..b423e63 100644 (file)
@@ -56,11 +56,7 @@ of_memory(Memory, <<NodeID/binary>>, Timestamp) ->
     ComponentToMessage =
         fun ({Key, Value}) ->
             KeyBin = atom_to_binary(Key, latin1),
-            ?T
-            { path      = [NodeID, <<"memory">>, KeyBin]
-            , value     = Value
-            , timestamp = Timestamp
-            }
+            cons([NodeID, <<"memory">>, KeyBin], Value, Timestamp)
         end,
     lists:map(ComponentToMessage, Memory).
 
This page took 0.0273949999999999 seconds and 4 git commands to generate.