Skip to content

Add oom_score_adj Process methods#298

Merged
eminence merged 2 commits intoeminence:masterfrom
futpib:oom_score_adj
Feb 3, 2024
Merged

Add oom_score_adj Process methods#298
eminence merged 2 commits intoeminence:masterfrom
futpib:oom_score_adj

Conversation

@futpib
Copy link
Contributor

@futpib futpib commented Jan 10, 2024

I took note of this comment: #139 (review):

So the way I read this is: while the final OOM "score" will be somewhere between 0 and 1000, the value reported in oom_score_adj can be between -1000 and 1000. So I think the oom_score_adj function should return a i16 not u32.

And changed oom_score type to u16 too, since it too only ranges from 0 to 1000.

Previous attempt: #139

@eminence
Copy link
Owner

eminence commented Feb 3, 2024

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants