Explorar o código

fix:不包含heap2内存

Dozingfiretruck %!s(int64=3) %!d(string=hai) anos
pai
achega
b82cc85baf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/port/luat_malloc_air101.c

+ 1 - 1
app/port/luat_malloc_air101.c

@@ -55,7 +55,7 @@ void luat_meminfo_sys(size_t* total, size_t* used, size_t* max_used)
     *max_used = xTotalHeapSize - xFreeBytesMin;
     *total = xTotalHeapSize;
 #else
-    *used = heap_size_max - total_mem_size - xPortGetFreeHeapSize();
+    *used = heap_size_max - total_mem_size;
     *max_used = *used;
     *total = heap_size_max;
 #endif