mirror of
https://github.com/markqvist/LXMF.git
synced 2025-07-28 17:44:32 -04:00
Persist last sync attempt
This commit is contained in:
parent
460645cea2
commit
e3be7e0cfd
1 changed files with 6 additions and 0 deletions
|
@ -92,6 +92,11 @@ class LXMPeer:
|
||||||
else:
|
else:
|
||||||
peer.tx_bytes = 0
|
peer.tx_bytes = 0
|
||||||
|
|
||||||
|
if "last_sync_attempt" in dictionary:
|
||||||
|
peer.last_sync_attempt = dictionary["last_sync_attempt"]
|
||||||
|
else:
|
||||||
|
peer.last_sync_attempt = 0
|
||||||
|
|
||||||
hm_count = 0
|
hm_count = 0
|
||||||
for transient_id in dictionary["handled_ids"]:
|
for transient_id in dictionary["handled_ids"]:
|
||||||
if transient_id in router.propagation_entries:
|
if transient_id in router.propagation_entries:
|
||||||
|
@ -121,6 +126,7 @@ class LXMPeer:
|
||||||
dictionary["link_establishment_rate"] = self.link_establishment_rate
|
dictionary["link_establishment_rate"] = self.link_establishment_rate
|
||||||
dictionary["sync_transfer_rate"] = self.sync_transfer_rate
|
dictionary["sync_transfer_rate"] = self.sync_transfer_rate
|
||||||
dictionary["propagation_transfer_limit"] = self.propagation_transfer_limit
|
dictionary["propagation_transfer_limit"] = self.propagation_transfer_limit
|
||||||
|
dictionary["last_sync_attempt"] = self.last_sync_attempt
|
||||||
dictionary["offered"] = self.offered
|
dictionary["offered"] = self.offered
|
||||||
dictionary["outgoing"] = self.outgoing
|
dictionary["outgoing"] = self.outgoing
|
||||||
dictionary["incoming"] = self.incoming
|
dictionary["incoming"] = self.incoming
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue