From 01b601d53a69cf9f86cdf0a2458e078e226ab82d Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Mon, 9 Dec 2024 15:13:20 +0000 Subject: [PATCH] util/conf/GeneralPreferences: Fix typo. --- src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java | 8 ++++---- src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java b/src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java index 94b36fbc81..6072fbc8ae 100644 --- a/src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java +++ b/src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java @@ -116,10 +116,10 @@ public void run() { return; } running = true; - double poolIntervalMin = Math.max(0.17, Math.min(30, GeneralPreferences.iridiumMessengerPoolMinutes)); - Duration poolInterval = poolIntervalMin >= 1 ? Duration.ofMinutes((long) poolIntervalMin) - : Duration.ofSeconds((long) (60 * poolIntervalMin)); - if (lastCall != null && System.currentTimeMillis() - lastCall.getTime() < poolInterval.toMillis()) { + double pollIntervalMin = Math.max(0.17, Math.min(30, GeneralPreferences.iridiumMessengerPollMinutes)); + Duration pollInterval = pollIntervalMin >= 1 ? Duration.ofMinutes((long) pollIntervalMin) + : Duration.ofSeconds((long) (60 * pollIntervalMin)); + if (lastCall != null && System.currentTimeMillis() - lastCall.getTime() < pollInterval.toMillis()) { return; } diff --git a/src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java b/src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java index 5b9db9656c..7aca94b4a2 100644 --- a/src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java +++ b/src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java @@ -234,10 +234,10 @@ public class GeneralPreferences implements PropertiesProvider { @NeptusProperty(name = "Iridium Messenger", category="Iridium Communications", userLevel = LEVEL.REGULAR, description = "Iridium messaging implementation") public static IridiumMessengerEnum iridiumMessenger = IridiumMessengerEnum.HubIridiumMessenger; - @NeptusProperty(name = "Iridium Messenger Pool Messages", category="Iridium Communications", userLevel = LEVEL.REGULAR, - description = "Iridium messaging pool messages in minutes. Valid values between 0.17 (~10s) and 30. Doesn't need restart to apply", + @NeptusProperty(name = "Iridium Messenger Poll Messages", category="Iridium Communications", userLevel = LEVEL.REGULAR, + description = "Iridium messaging poll messages in minutes. Valid values between 0.17 (~10s) and 30. Doesn't need restart to apply", units = "minutes") - public static double iridiumMessengerPoolMinutes = 5; + public static double iridiumMessengerPollMinutes = 5; // -------------------------------------------------------------------------