home
/
code
/
beam_stats.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140077c
)
Fix request of next ETS key after deletion of previous
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 27 Sep 2015 23:28:00 +0000
(19:28 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 27 Sep 2015 23:28:00 +0000
(19:28 -0400)
src/beam_stats_delta.erl
patch
|
blob
|
blame
|
history
diff --git
a/src/beam_stats_delta.erl
b/src/beam_stats_delta.erl
index
8820d71
..
1e3bdfb
100644
(file)
--- a/
src/beam_stats_delta.erl
+++ b/
src/beam_stats_delta.erl
@@
-61,11
+61,12
@@
gc(?T{erlang_process_info_reductions=Table}=T) ->
-spec gc(t(), pid()) ->
{}.
gc(?T{erlang_process_info_reductions=Table}=T, Pid) ->
+ Next = ets:next(Table, Pid),
case beam_stats_source:erlang_is_process_alive(Pid)
of true -> true
; false -> ets:delete(Table, Pid)
end,
- case
ets:next(Table, Pid)
+ case
Next
of '$end_of_table' ->
{}
; NextPid when is_pid(NextPid) ->
This page took
0.030222 seconds
and
4
git commands to generate.