Skip to content

Commit

Permalink
increase max number of samplingports from 2 to 32
Browse files Browse the repository at this point in the history
This fixes #82.
  • Loading branch information
wucke13 committed Jul 19, 2023
1 parent 53bb05e commit 2642301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partition/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub(crate) static PERIODIC_PROCESS: Lazy<TempFile<Option<Process>>> = Lazy::new(
});

pub(crate) type SamplingPortsType = (usize, Duration);
pub(crate) static SAMPLING_PORTS: Lazy<TempFile<ArrayVec<[SamplingPortsType; 2]>>> =
pub(crate) static SAMPLING_PORTS: Lazy<TempFile<ArrayVec<[SamplingPortsType; 32]>>> =
Lazy::new(|| {
if let Ok(fd) = get_memfd(SAMPLING_PORTS_FILE) {
TempFile::try_from(fd).unwrap()
Expand Down

0 comments on commit 2642301

Please sign in to comment.