home
/
code
/
beam_stats.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove nonexistent type: erlang:time()
[beam_stats.git]
/
src
/
beam_stats_consumer.erl
diff --git
a/src/beam_stats_consumer.erl
b/src/beam_stats_consumer.erl
index
8d25fa4
..
fa06695
100644
(file)
--- a/
src/beam_stats_consumer.erl
+++ b/
src/beam_stats_consumer.erl
@@
-37,7
+37,7
@@
%% ============================================================================
-callback init(Options :: term()) ->
%% ============================================================================
-callback init(Options :: term()) ->
- {ConsumptionInterval ::
erlang:time
(), State :: term()}.
+ {ConsumptionInterval ::
non_neg_integer
(), State :: term()}.
-callback consume(queue(), State) ->
State.
-callback consume(queue(), State) ->
State.
@@
-54,7
+54,7
@@
-record(state,
{ consumer_module :: atom()
, consumer_state :: term()
-record(state,
{ consumer_module :: atom()
, consumer_state :: term()
- , consumption_interval ::
erlang:time
()
+ , consumption_interval ::
non_neg_integer
()
, beam_stats_queue :: queue()
}).
, beam_stats_queue :: queue()
}).
@@
-136,7
+136,7
@@
schedule_first_consumption() ->
_ = self() ! ?SIGNAL_CONSUMPTION,
ok.
_ = self() ! ?SIGNAL_CONSUMPTION,
ok.
--spec schedule_next_consumption(
erlang:time
()) ->
+-spec schedule_next_consumption(
non_neg_integer
()) ->
ok.
schedule_next_consumption(Time) ->
_ = erlang:send_after(Time, self(), ?SIGNAL_CONSUMPTION),
ok.
schedule_next_consumption(Time) ->
_ = erlang:send_after(Time, self(), ?SIGNAL_CONSUMPTION),
This page took
0.02481 seconds
and
4
git commands to generate.