Skip to content

Commit e190b3f

Browse files
committed
Use EPICS_PVA_MAX_BEACON_AGE to clear beacon table
1 parent 0b3ae52 commit e190b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/pva/src/main/java/org/epics/pva/client/BeaconTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private void removeOldBeaconInfo(final Instant now)
162162
{
163163
final BeaconInfo info = infos.next().getValue();
164164
final long age = Duration.between(info.last, now).getSeconds();
165-
if (age > 180) // TODO beacon_cleanup_period
165+
if (age > PVASettings.EPICS_PVA_MAX_BEACON_AGE)
166166
{
167167
logger.log(Level.FINER,
168168
() -> "Removing beacon info " + info.guid + " (" + info.address + "), last seen " + age + " seconds ago");

0 commit comments

Comments
 (0)