Buffer size reverted from debug value to current standard. Comments updated.
Some checks failed
CI Code / Linux (arch) (pull_request) Successful in 12m42s
CI Code / Check coding style (pull_request) Failing after 4m59s
CI Code / Check spelling (pull_request) Failing after 6m38s
CI Code / Linux (ubuntu) (pull_request) Successful in 15m23s
CI Code / Linux (debian) (pull_request) Successful in 18m2s

This commit is contained in:
2025-10-28 08:17:06 +03:00
committed by jabber.developer2
parent efad679e59
commit fbe73a07f3
2 changed files with 4 additions and 14 deletions

View File

@@ -98,7 +98,7 @@ _buffer_add(ProfBuff buffer, const char* show_char, int pad_indent, GDateTime* t
buffer->lines += e->_lines;
// With 10% margin to ensure overflow prevention
while (buffer->lines >= 190 && g_slist_length(buffer->entries) > 1) {
while (buffer->lines >= PAD_SIZE - (PAD_SIZE / 10) && g_slist_length(buffer->entries) > 1) {
log_debug("DELETING");
// Delete message from the opposite size to free buffer
GSList* buffer_entry_to_delete = append ? buffer->entries : g_slist_last(buffer->entries);