libsysprof-profile: remove frame overhead from max data length

Just so that we can potentially fit multiple of these per buffering in the
capture writer.
This commit is contained in:
Christian Hergert
2023-05-30 17:00:00 -07:00
parent f91e13e055
commit df7da9bb41

View File

@ -414,7 +414,7 @@ sysprof_recording_add_file_fiber (gpointer user_data)
while (len > 0)
{
gsize to_write = MIN (len, 4096*8);
gsize to_write = MIN (len, ((4096*8)-sizeof (SysprofCaptureFileChunk)));
if (!sysprof_capture_writer_add_file (add_file->writer,
SYSPROF_CAPTURE_CURRENT_TIME,