From f3369410b2af48276b1cced9968d6a050680a8a0 Mon Sep 17 00:00:00 2001 From: Denny Sheirer Date: Sun, 2 Jul 2023 06:23:00 -0400 Subject: [PATCH] #1590 Resolves issue with RSP tuners generating too many native buffers causing excessive memory consumption (#1591) Co-authored-by: Dennis Sheirer --- .idea/misc.xml | 2 +- .../dsheirer/source/tuner/sdrplay/RspNativeBufferFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7c3b4f53..12974c9a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/src/main/java/io/github/dsheirer/source/tuner/sdrplay/RspNativeBufferFactory.java b/src/main/java/io/github/dsheirer/source/tuner/sdrplay/RspNativeBufferFactory.java index 277cc5bd..70065d0b 100644 --- a/src/main/java/io/github/dsheirer/source/tuner/sdrplay/RspNativeBufferFactory.java +++ b/src/main/java/io/github/dsheirer/source/tuner/sdrplay/RspNativeBufferFactory.java @@ -122,7 +122,7 @@ public class RspNativeBufferFactory { int optimal = 128; - while((optimal * 2) < length) + while((optimal) < length) { optimal *= 2; }