Changeset 515

Show
Ignore:
Timestamp:
01/20/08 07:00:51 (1 year ago)
Author:
stavros
Message:

BUG: fixed an operator precedence problem in ASR and ALOC alarms.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.3/A2Billing_AGI/libs_a2billing/crontjob/a2billing_alarm.php

    r384 r515  
    182182                if ($max_fail == 1)     $max_fail = 0; 
    183183         
    184                 $ASR = $totalsuccess / $totalsuccess + $totalfail
    185                 $ALOC = $totaltime / $totalsuccess + $totalfail
     184                $ASR = $totalsuccess / ($totalsuccess + $totalfail)
     185                $ALOC = $totaltime / ($totalsuccess + $totalfail)
    186186                 
    187187                $send_alarm = false;             


Google