From 42425b02260d279cd9c12fb3e625282979b9e308 Mon Sep 17 00:00:00 2001 From: Simponic Date: Fri, 30 Dec 2022 05:46:35 -0700 Subject: Add scalable session thresholds --- lib/chessh/utils.ex | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/chessh/utils.ex (limited to 'lib/chessh/utils.ex') diff --git a/lib/chessh/utils.ex b/lib/chessh/utils.ex new file mode 100644 index 0000000..1a7f8cf --- /dev/null +++ b/lib/chessh/utils.ex @@ -0,0 +1,9 @@ +defmodule Chessh.Utils do + def pid_to_str(pid) do + pid + |> :erlang.pid_to_list() + |> List.delete_at(0) + |> List.delete_at(-1) + |> to_string() + end +end -- cgit v1.2.3-70-g09d2