Skip to content

Commit

Permalink
util/conf/GeneralPreferences: Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosousadias committed Dec 9, 2024
1 parent 6a36429 commit 01b601d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/java/pt/lsts/neptus/comm/iridium/IridiumManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions src/java/pt/lsts/neptus/util/conf/GeneralPreferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

// -------------------------------------------------------------------------

Expand Down

0 comments on commit 01b601d

Please sign in to comment.