Skip to content

Commit

Permalink
Fix load monitoring inconsistency bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Stockton Slack authored and bkueng committed Jul 22, 2024
1 parent 9ff6c4b commit 36d89df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/load_mon/LoadMon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36d89df

Please sign in to comment.