diff options
author | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
commit | 42425b02260d279cd9c12fb3e625282979b9e308 (patch) | |
tree | 0412bf9f39d44266cff94082c499e44e5f6e60f5 /lib/chessh/utils.ex | |
parent | 60eea1b4ed65bc7cfce1e383dac6de9d004540eb (diff) | |
download | chessh-42425b02260d279cd9c12fb3e625282979b9e308.tar.gz chessh-42425b02260d279cd9c12fb3e625282979b9e308.zip |
Add scalable session thresholds
Diffstat (limited to 'lib/chessh/utils.ex')
-rw-r--r-- | lib/chessh/utils.ex | 9 |
1 files changed, 9 insertions, 0 deletions
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 |