From c098a763b0747511b3b5d321470b662eb9e0e36c Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 14 Apr 2015 17:09:45 +0200 Subject: [PATCH] Fix operator precedence in mod_logxml rotation calculus (#95) --- mod_logxml/src/mod_logxml.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_logxml/src/mod_logxml.erl b/mod_logxml/src/mod_logxml.erl index 3d89ae9..53f5f8c 100644 --- a/mod_logxml/src/mod_logxml.erl +++ b/mod_logxml/src/mod_logxml.erl @@ -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