mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-23 18:53:28 +00:00
Heap: fix typos in test and component
This commit is contained in:
@@ -376,7 +376,7 @@ void multi_heap_get_info_impl(multi_heap_handle_t heap, multi_heap_info_t *info)
|
||||
|
||||
multi_heap_internal_lock(heap);
|
||||
tlsf_walk_pool(tlsf_get_pool(heap->heap_data), multi_heap_get_info_tlsf, info);
|
||||
/* TLSF has an overhead per block. Calculate the total amoun of overhead, it shall not be
|
||||
/* TLSF has an overhead per block. Calculate the total amount of overhead, it shall not be
|
||||
* part of the allocated bytes */
|
||||
overhead = info->allocated_blocks * tlsf_alloc_overhead();
|
||||
info->total_allocated_bytes = (heap->pool_size - tlsf_size()) - heap->free_bytes - overhead;
|
||||
|
Reference in New Issue
Block a user