improve readability of debug statement
This commit is contained in:
parent
f81471da09
commit
965e1e8bc1
|
@ -1198,7 +1198,7 @@ bool Monitor::Analyse() {
|
||||||
int pending_frames = shared_data->last_write_index - shared_data->last_read_index;
|
int pending_frames = shared_data->last_write_index - shared_data->last_read_index;
|
||||||
if ( pending_frames < 0 ) pending_frames += image_buffer_count;
|
if ( pending_frames < 0 ) pending_frames += image_buffer_count;
|
||||||
|
|
||||||
Debug( 4, "RI:%d, WI: %d, PF = %d, RM = %d, Step = %d", shared_data->last_read_index, shared_data->last_write_index, pending_frames, read_margin, step );
|
Debug( 4, "ReadIndex:%d, WriteIndex: %d, PendingFrames = %d, ReadMargin = %d, Step = %d", shared_data->last_read_index, shared_data->last_write_index, pending_frames, read_margin, step );
|
||||||
if ( step <= pending_frames ) {
|
if ( step <= pending_frames ) {
|
||||||
index = (shared_data->last_read_index+step)%image_buffer_count;
|
index = (shared_data->last_read_index+step)%image_buffer_count;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue