Source refactoing after code review;
All checks were successful
CI Code / Check spelling (pull_request) Successful in 20s
CI Code / Check coding style (pull_request) Successful in 35s
CI Code / Linux (arch) (pull_request) Successful in 10m15s
CI Code / Linux (debian) (pull_request) Successful in 13m31s
CI Code / Linux (ubuntu) (pull_request) Successful in 13m51s

This commit is contained in:
2025-10-29 17:45:43 +03:00
parent a4efa61fc9
commit 68e214f27f
2 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,6 @@ _buffer_add(ProfBuff buffer, const char* show_char, int pad_indent, GDateTime* t
// With 10% margin to ensure overflow prevention
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);
ProfBuffEntry* entry_to_delete = (ProfBuffEntry*)buffer_entry_to_delete->data;