Skip to content

Commit

Permalink
reverted lexmag#6
Browse files Browse the repository at this point in the history
  • Loading branch information
ebostijancic committed Oct 4, 2016
1 parent ddd060b commit 2a9cecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluxter/packet.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Fluxter.Packet do

case is_nil(ts) do
true -> [header, encode_key(name), tags, ?\s, fields]
false -> [header, encode_key(name), tags, ?\s, fields, ?\s, encode_value(DateTime.to_unix(ts, :nanoseconds))]
false -> [header, encode_key(name), tags, ?\s, fields, ?\s, DateTime.to_unix(ts, :nanoseconds) |> Integer.to_string]
end
end

Expand Down

0 comments on commit 2a9cecf

Please sign in to comment.