Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix float encoding (endianess wrong?)

  • Loading branch information...
commit b1fae6d8dc3d1ba75d77c33cff5c66ff8446f093 1 parent 08a585d
@astro authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/collectd_pkt.erl
View
4 src/collectd_pkt.erl
@@ -69,4 +69,6 @@ pack_values(TypesValues) ->
htond(Float) ->
<<_:16, B/binary>> = term_to_binary(Float, [{minor_version, 1}]),
- B.
+ list_to_binary(
+ lists:reverse(
+ binary_to_list(B))).

0 comments on commit b1fae6d

Please sign in to comment.
Something went wrong with that request. Please try again.