Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Division by zero happens in tamt_trafficflowhourlyaverage when a traffic count
entry is from one hour to another (e.g. 06:00 to 07:00). The date_part function
gives a minute interval of 0 for this instead of 60 (as in 60 minutes). Then,
when we try to convert to:
w2 * (60.0 / date_part('minute', (endtime - starttime))) as w2avg
...we end up trying to compute 60/0.
This defect was totally invisible during previous testing with sample traffic
counts that crossed the hour boundary. (e.g. 06:00 to 07:15)
Original comment by stuartmo...@gmail.com
on 1 Mar 2011 at 11:35
Original comment by stuartmo...@gmail.com
on 2 Mar 2011 at 12:25
Original issue reported on code.google.com by
stuartmo...@gmail.com
on 1 Mar 2011 at 10:38