Read 4k at a time instead of 32 bytes. OS will read whatever is available. This basically reduces logging and a little cpu overhead

This commit is contained in:
Isaac Connor 2021-07-28 09:36:21 -04:00
parent dffc7aa2fd
commit 85d5dd806e
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ int ZoneMinderFifoSource::getNextFrame() {
}
}
int bytes_read = m_buffer.read_into(m_fd, 32);
int bytes_read = m_buffer.read_into(m_fd, 4096);
//int bytes_read = m_buffer.read_into(m_fd, 4096, {1,0});
if (bytes_read == 0) {
Debug(3, "No bytes read");