mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Nuttx changed CONFIG_DRAM_SIZE to CONFIG_RAM_SIZE
This commit is contained in:
committed by
Lorenz Meier
parent
b6362ed87c
commit
ff0e810b55
@@ -240,7 +240,7 @@ float LoadMon::_ram_used()
|
||||
float load = (float)mem.uordblks / mem.arena;
|
||||
|
||||
// Check for corruption of the allocation counters
|
||||
if ((mem.arena > CONFIG_DRAM_SIZE) || (mem.fordblks > CONFIG_DRAM_SIZE)) {
|
||||
if ((mem.arena > CONFIG_RAM_SIZE) || (mem.fordblks > CONFIG_RAM_SIZE)) {
|
||||
load = 1.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user