25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix R12B5 compatibility in ejabberd_http_bind.erl (EJAB-1343)

erlang:max/2 and :min/2 are new functions
This commit is contained in:
Andreas Köhler 2010-11-09 14:11:38 +01:00 committed by Badlop
parent 6eeb355a22
commit cfd377b98e

View File

@ -270,9 +270,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs,
(CPdelay =< ?PROCESS_DELAY_MAX) ->
CPdelay;
{CPdelay, _} ->
erlang:max(
erlang:min(CPdelay,?PROCESS_DELAY_MAX),
?PROCESS_DELAY_MIN)
lists:max([lists:min([CPdelay, ?PROCESS_DELAY_MAX]), ?PROCESS_DELAY_MIN])
end,
Version =
case catch list_to_float(