Skip to content

Commit

Permalink
Make frame send time a debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Dec 6, 2024
1 parent 4a65925 commit 6271cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zm_monitorstream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ bool MonitorStream::sendFrame(const char *filepath, const timeval &timestamp) {
int frameSendTime = tvDiffMsec(frameStartTime, frameEndTime);
if ( frameSendTime > 1000/maxfps ) {
maxfps /= 2;
Info("Frame send time %d msec too slow, throttling maxfps to %.2f", frameSendTime, maxfps);
Debug(1, "Frame send time %d msec too slow, throttling maxfps to %.2f", frameSendTime, maxfps);
}

last_frame_sent = TV_2_FLOAT(now);
Expand Down Expand Up @@ -420,7 +420,7 @@ bool MonitorStream::sendFrame(Image *image, const timeval &timestamp) {
int frameSendTime = tvDiffMsec(frameStartTime, frameEndTime);
if ( frameSendTime > 1000/maxfps ) {
maxfps /= 1.5;
Warning("Frame send time %d msec too slow, throttling maxfps to %.2f",
Debug(1, "Frame send time %d msec too slow, throttling maxfps to %.2f",
frameSendTime, maxfps);
}
} // Not mpeg
Expand Down

0 comments on commit 6271cc5

Please sign in to comment.