home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unknown types.
[beam_stats.git]
/
src
/
beam_stats_consumer_statsd.erl
diff --git
a/src/beam_stats_consumer_statsd.erl
b/src/beam_stats_consumer_statsd.erl
index
cfd6cbf
..
fe8299c
100644
(file)
--- a/
src/beam_stats_consumer_statsd.erl
+++ b/
src/beam_stats_consumer_statsd.erl
@@
-144,12
+144,12
@@
beam_stats_to_bins(#beam_stats
Msgs2 = [statsd_msg_add_name_prefix(M, NodeIDBin) || M <- Msgs1],
[statsd_msg_to_bin(M) || M <- Msgs2].
Msgs2 = [statsd_msg_add_name_prefix(M, NodeIDBin) || M <- Msgs1],
[statsd_msg_to_bin(M) || M <- Msgs2].
--spec memory_to_msgs(
erlang:memory()
) ->
+-spec memory_to_msgs(
[{atom(), non_neg_integer()}]
) ->
[statsd_msg()].
memory_to_msgs(Memory) ->
[memory_component_to_statsd_msg(MC) || MC <- Memory].
[statsd_msg()].
memory_to_msgs(Memory) ->
[memory_component_to_statsd_msg(MC) || MC <- Memory].
--spec memory_component_to_statsd_msg({
erlang:memory_type
(), non_neg_integer()}) ->
+-spec memory_component_to_statsd_msg({
atom
(), non_neg_integer()}) ->
statsd_msg().
memory_component_to_statsd_msg({MemType, MemSize}) when MemSize >= 0 ->
#statsd_msg
statsd_msg().
memory_component_to_statsd_msg({MemType, MemSize}) when MemSize >= 0 ->
#statsd_msg
This page took
0.022623 seconds
and
4
git commands to generate.