From a46e9a5cbb8fc233a0ccb47708e7686c2b561ac0 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Thu, 3 Jul 2025 21:37:46 +0200 Subject: Only save config when there are worthy changes --- src/peers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peers.h') diff --git a/src/peers.h b/src/peers.h index 2c7845b..15044a7 100644 --- a/src/peers.h +++ b/src/peers.h @@ -36,5 +36,5 @@ int allocate_hashtable(); int add_peer(struct infohash* infohash, struct addr* peer, time_t now); void get_peers(struct infohash* infohash, struct addr **peers, size_t *peers_len); -void expire_hashes(time_t now); +void expire_hashes(time_t now, bool *dirty); void peer_update_metrics(); -- cgit v1.2.3