Set the bandmap spot timeout separately for CW/digital and phone
CW and digital spots time out after 10 minutes and phone spots after 30 by default, both settings on the telnet Filters tab. The mode comes from the band plan; a frequency it has no boundaries for counts as phone. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -18,6 +18,21 @@ public class BandmapTests
|
||||
Assert.Equal(["JA1XYZ", "DL1ABC"], map.On(Bands.Band20M).Select(s => s.Call.Text));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void EachSpotLivesAsLongAsItsOwnLifetime()
|
||||
{
|
||||
Bandmap map = new(clock: () => Now)
|
||||
{
|
||||
LifetimeFor = spot => TimeSpan.FromMinutes(spot.Frequency.Kilohertz < 14_100 ? 10 : 30),
|
||||
};
|
||||
map.Add(At("DL1ABC", 14_025));
|
||||
map.Add(At("JA1XYZ", 14_200));
|
||||
|
||||
map.DropOlderThan(Now.AddMinutes(15));
|
||||
|
||||
Assert.Equal(["JA1XYZ"], map.All().Select(s => s.Call.Text));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AStationThatMovesKeepsOneEntryOnItsBand()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user