allow 0 pre_event_count
This commit is contained in:
parent
8c52c7feef
commit
a5b77a59d3
|
@ -1485,7 +1485,7 @@ bool Monitor::Analyse() {
|
||||||
if ( analysis_fps ) {
|
if ( analysis_fps ) {
|
||||||
// If analysis fps is set,
|
// If analysis fps is set,
|
||||||
// compute the index for pre event images in the dedicated buffer
|
// compute the index for pre event images in the dedicated buffer
|
||||||
pre_index = image_count%pre_event_buffer_count;
|
pre_index = pre_event_buffer_count ? image_count%pre_event_buffer_count : 0;
|
||||||
|
|
||||||
// Seek forward the next filled slot in to the buffer (oldest data)
|
// Seek forward the next filled slot in to the buffer (oldest data)
|
||||||
// from the current position
|
// from the current position
|
||||||
|
@ -1540,7 +1540,7 @@ bool Monitor::Analyse() {
|
||||||
if ( analysis_fps ) {
|
if ( analysis_fps ) {
|
||||||
// If analysis fps is set,
|
// If analysis fps is set,
|
||||||
// compute the index for pre event images in the dedicated buffer
|
// compute the index for pre event images in the dedicated buffer
|
||||||
pre_index = image_count%pre_event_buffer_count;
|
pre_index = pre_event_buffer_count ? image_count%pre_event_buffer_count : 0;
|
||||||
|
|
||||||
// Seek forward the next filled slot in to the buffer (oldest data)
|
// Seek forward the next filled slot in to the buffer (oldest data)
|
||||||
// from the current position
|
// from the current position
|
||||||
|
|
Loading…
Reference in New Issue