Fix operator precedence in mod_logxml rotation calculus (#95)

This commit is contained in:
Badlop 2015-04-14 17:09:45 +02:00
parent 176d2e68ca
commit c098a763b0
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ get_now_iso(Timezone) ->
end,
binary_to_list(jlib:timestamp_to_iso(TimeStamp)).
calc_div(A, B) when is_integer(A) and is_integer(B) and B =/= 0 ->
calc_div(A, B) when is_integer(A) and is_integer(B) and (B /= 0) ->
A/B;
calc_div(_A, _B) ->
0.5. %% This ensures that no rotation is performed