From 26423015943d8756be195e7f41f86a8a3992c7b5 Mon Sep 17 00:00:00 2001 From: wucke13 Date: Wed, 19 Jul 2023 20:35:03 +0200 Subject: [PATCH] increase max number of samplingports from 2 to 32 This fixes #82. --- partition/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/partition/src/lib.rs b/partition/src/lib.rs index 4076f9b..7cfe6b4 100644 --- a/partition/src/lib.rs +++ b/partition/src/lib.rs @@ -64,7 +64,7 @@ pub(crate) static PERIODIC_PROCESS: Lazy>> = Lazy::new( }); pub(crate) type SamplingPortsType = (usize, Duration); -pub(crate) static SAMPLING_PORTS: Lazy>> = +pub(crate) static SAMPLING_PORTS: Lazy>> = Lazy::new(|| { if let Ok(fd) = get_memfd(SAMPLING_PORTS_FILE) { TempFile::try_from(fd).unwrap()