diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-04-11 12:13:58 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-04-11 12:13:58 +0200 |
commit | b1acd1183f1ce176a4703528d7d25b9dd3ee89f4 (patch) | |
tree | 9339705c26123538d94ad1fc62011b02517e6e98 /src/ejabberd_sm_sql.erl | |
parent | Use p1_utils 1.0.8 (diff) |
Rename aux.erl as misc.erl17.04
Thanks Microsoft Windows to not support some filenames
Diffstat (limited to 'src/ejabberd_sm_sql.erl')
-rw-r--r-- | src/ejabberd_sm_sql.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_sm_sql.erl b/src/ejabberd_sm_sql.erl index 9a2e6ae35..04f03f750 100644 --- a/src/ejabberd_sm_sql.erl +++ b/src/ejabberd_sm_sql.erl @@ -65,10 +65,10 @@ init() -> set_session(#session{sid = {Now, Pid}, usr = {U, LServer, R}, priority = Priority, info = Info}) -> - InfoS = aux:term_to_expr(Info), + InfoS = misc:term_to_expr(Info), PrioS = enc_priority(Priority), TS = now_to_timestamp(Now), - PidS = aux:encode_pid(Pid), + PidS = misc:encode_pid(Pid), Node = erlang:atom_to_binary(node(Pid), latin1), case ?SQL_UPSERT(LServer, "sm", ["!usec=%(TS)d", @@ -194,7 +194,7 @@ enc_priority(Int) when is_integer(Int) -> row_to_session(LServer, {USec, PidS, NodeS, User, Resource, PrioS, InfoS}) -> Now = timestamp_to_now(USec), - Pid = aux:decode_pid(PidS, NodeS), + Pid = misc:decode_pid(PidS, NodeS), Priority = dec_priority(PrioS), Info = ejabberd_sql:decode_term(InfoS), #session{sid = {Now, Pid}, us = {User, LServer}, |