I have some code that looks like this:

if (($duration < 600) && (($ts > $ts_offp) && ($ts < $ts_end))) {
            $$data{$csid}{under_off} += 1;
            $$data{$csid}{duration_offd} += $duration;
            $$data{$csid}{total_off_callsd} += 1;
        }

The problem being it doesn't look at the timestamps in between $ts_offp and $ts_end.  
It examines everything greater and than $ts_offp and everything less than $ts_end.  I 
am getting duplicate values.  How do I prevent this from happening.  I tried to add 
some additional constraints using 'unless', but that didn't work either.  Thanks for 
the input.

-_-Aaron

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to