Page 1 of 1

found bug in EventStream()... fixed...

Posted: Sat Jan 15, 2005 8:06 pm
by reza
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

Posted: Sun Jan 16, 2005 5:34 pm
by zoneminder
Thanks for this. I think you just managed to get it in in time to be fixed in 1.20.0

Cheers

Phil