refactor: re-use graphite_msg cons/3
[beam_stats.git] / 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.020619 seconds and 4 git commands to generate.