Skip to content

Commit 7aec544

Browse files
lukaszsamsonjosevalim
authored andcommitted
Use :erlang.system_info(:ets_count) introduced in OTP 22 (#10841)
1 parent f71f37e commit 7aec544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iex/lib/iex/helpers.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ defmodule IEx.Helpers do
616616
IO.puts("#{pad_key(key)}#{min} / #{max} (#{percentage}% used)")
617617
end
618618

619-
defp get_stat(:ets_count), do: length(:ets.all())
619+
defp get_stat(:ets_count), do: :erlang.system_info(:ets_count)
620620
defp get_stat(other), do: :erlang.system_info(other)
621621

622622
defp print_memory(key, memory) do

0 commit comments

Comments
 (0)