in zm_event.cpp, if the duration is less than a full second, duration is set to zero..
int duration = atoi(dbrow[3]);
and then you get the floating point error here...
int base_fps = frames/duration;
I just set base_fps to 1 if duration is zero, however, you can also do floating point math for the computations to get the exact answer.
Reza
found bug in EventStream()... fixed...
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: