Skip to content

Commit 36d89df

Browse files
Stockton Slackbkueng
authored andcommitted
Fix load monitoring inconsistency bug
1 parent 9ff6c4b commit 36d89df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/load_mon/LoadMon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ void LoadMon::cpuload()
202202
}
203203
}
204204

205-
fseek(_proc_fd, 0, SEEK_END);
205+
fseek(_proc_fd, 0, SEEK_SET);
206206

207207
if (parsedCount == 5) {
208208
int32_t kb_main_cached = kb_page_cache + kb_slab_reclaimable;

0 commit comments

Comments
 (0)