Heap: fix typos in test and component

This commit is contained in:
Omar Chebib
2022-04-11 11:36:52 +08:00
parent d7f614d58a
commit 2cc879120b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;