|
|
|
@ -10,12 +10,11 @@ type LatencyLevel struct {
@@ -10,12 +10,11 @@ type LatencyLevel struct {
|
|
|
|
|
// GetLatencyConfigs will return the available latency level options.
|
|
|
|
|
func GetLatencyConfigs() map[int]LatencyLevel { |
|
|
|
|
return map[int]LatencyLevel{ |
|
|
|
|
1: {Level: 1, SecondsPerSegment: 1, SegmentCount: 2}, |
|
|
|
|
2: {Level: 2, SecondsPerSegment: 2, SegmentCount: 2}, |
|
|
|
|
3: {Level: 3, SecondsPerSegment: 2, SegmentCount: 3}, |
|
|
|
|
4: {Level: 4, SecondsPerSegment: 3, SegmentCount: 4}, // Default
|
|
|
|
|
5: {Level: 5, SecondsPerSegment: 4, SegmentCount: 5}, |
|
|
|
|
6: {Level: 6, SecondsPerSegment: 6, SegmentCount: 10}, |
|
|
|
|
0: {Level: 0, SecondsPerSegment: 1, SegmentCount: 3}, // Approx 5 seconds
|
|
|
|
|
1: {Level: 1, SecondsPerSegment: 2, SegmentCount: 2}, // Approx 7-8 seconds
|
|
|
|
|
2: {Level: 2, SecondsPerSegment: 3, SegmentCount: 3}, // Default Approx 11 seconds
|
|
|
|
|
3: {Level: 3, SecondsPerSegment: 4, SegmentCount: 3}, // Approx 15 seconds
|
|
|
|
|
4: {Level: 4, SecondsPerSegment: 5, SegmentCount: 4}, // Approx 18 seconds
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|