tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit dbd1fa38db692acf68ba18b78564e2ed6bdd611b
parent 744a6b3b53755be364b37f7914b1961e9391bebf
Author: parazyd <parazyd@dyne.org>
Date:   Sat, 27 Oct 2018 13:49:58 +0200

dam-dir: Remove unnecessary conversion in pollNodeTTL.

Diffstat:
Mcmd/dam-dir/main.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go @@ -223,7 +223,7 @@ func pollNodeTTL(interval int64) { lastseen, err := strconv.Atoi(res) lib.CheckError(err) - diff := int64((now - int64(lastseen)) / 60) + diff := (now - int64(lastseen)/60) if diff > interval { log.Printf("Deleting %s from redis because of expiration\n", i) lib.PublishToRedis("d", i)