mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
Fix load monitoring inconsistency bug
This commit is contained in:
committed by
Beat Küng
parent
9ff6c4bf28
commit
36d89df0a7
@@ -202,7 +202,7 @@ void LoadMon::cpuload()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fseek(_proc_fd, 0, SEEK_END);
|
fseek(_proc_fd, 0, SEEK_SET);
|
||||||
|
|
||||||
if (parsedCount == 5) {
|
if (parsedCount == 5) {
|
||||||
int32_t kb_main_cached = kb_page_cache + kb_slab_reclaimable;
|
int32_t kb_main_cached = kb_page_cache + kb_slab_reclaimable;
|
||||||
|
|||||||
Reference in New Issue
Block a user