From 36d89df0a722e2fca3f23e4d0ddd9da9fb5b7ecc Mon Sep 17 00:00:00 2001 From: Stockton Slack Date: Mon, 8 Jul 2024 12:32:22 -0600 Subject: [PATCH] Fix load monitoring inconsistency bug --- src/modules/load_mon/LoadMon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/load_mon/LoadMon.cpp b/src/modules/load_mon/LoadMon.cpp index aa400391dc52..937d02c03e12 100644 --- a/src/modules/load_mon/LoadMon.cpp +++ b/src/modules/load_mon/LoadMon.cpp @@ -202,7 +202,7 @@ void LoadMon::cpuload() } } - fseek(_proc_fd, 0, SEEK_END); + fseek(_proc_fd, 0, SEEK_SET); if (parsedCount == 5) { int32_t kb_main_cached = kb_page_cache + kb_slab_reclaimable;