mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-06 08:53:46 +02:00
add Packet Hash Cache to UI
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ repeater:
|
||||
identity_file: null
|
||||
|
||||
# Duplicate packet cache TTL in seconds
|
||||
cache_ttl: 60
|
||||
cache_ttl: 3600
|
||||
|
||||
# Score-based transmission filtering
|
||||
# Enable quality-based packet filtering and adaptive delays
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class RepeaterHandler(BaseHandler):
|
||||
self.send_advert_func = send_advert_func
|
||||
self.airtime_mgr = AirtimeManager(config)
|
||||
self.seen_packets = OrderedDict()
|
||||
self.cache_ttl = config.get("repeater", {}).get("cache_ttl", 3600) # 1 hour
|
||||
self.cache_ttl = max(300, config.get("repeater", {}).get("cache_ttl", 3600)) # Min 5 min, default 1 hour
|
||||
self.max_cache_size = 1000
|
||||
self.tx_delay_factor = config.get("delays", {}).get("tx_delay_factor", 1.0)
|
||||
self.direct_tx_delay_factor = config.get("delays", {}).get("direct_tx_delay_factor", 0.5)
|
||||
|
||||
+84
-84
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -8,8 +8,8 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<script type="module" crossorigin src="/assets/index-3RchmGmb.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Cl2JsWJ_.css">
|
||||
<script type="module" crossorigin src="/assets/index-Dz5Q9Vcf.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-KLnbrplX.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
Reference in New Issue
Block a user