}
///////////////////////////////////////////////////////////////////////
-static void oomscore2proc(const char* S, proc_t *restrict P)
+static inline void oomscore2proc(const char* S, proc_t *restrict P)
{
sscanf(S, "%d", &P->oom_score);
}
-static void oomadj2proc(const char* S, proc_t *restrict P)
+static inline void oomadj2proc(const char* S, proc_t *restrict P)
{
sscanf(S, "%d", &P->oom_adj);
}
if (unlikely(flags & PROC_FILLOOM)) {
if (likely(file2str(path, "oom_score", &ub) != -1))
oomscore2proc(ub.buf, p);
- if (likely(file2str(path, "oom_adj", &ub) != -1))
+ if (likely(file2str(path, "oom_score_adj", &ub) != -1))
oomadj2proc(ub.buf, p);
}
if (unlikely(flags & PROC_FILLOOM)) {
if (likely(file2str(path, "oom_score", &ub) != -1))
oomscore2proc(ub.buf, t);
- if (likely(file2str(path, "oom_adj", &ub) != -1))
+ if (likely(file2str(path, "oom_score_adj", &ub) != -1))
oomadj2proc(ub.buf, t);
}