Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Hillion <[email protected]>
  • Loading branch information
htejun and JakeHillion committed Nov 28, 2024
1 parent 0eb9bb7 commit 4a95873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheds/rust/scx_layered/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ impl<'a> Scheduler<'a> {
skel.maps.rodata_data.debug = opts.verbose as u32;
// Running scx_layered inside a PID namespace would break the
// following.
skel.maps.rodata_data.layered_tgid = unsafe { libc::getpid() };
skel.maps.rodata_data.layered_tgid = std::process::id() as i32;
skel.maps.rodata_data.slice_ns = opts.slice_us * 1000;
skel.maps.rodata_data.max_exec_ns = if opts.max_exec_us > 0 {
opts.max_exec_us * 1000
Expand Down

0 comments on commit 4a95873

Please sign in to comment.