tdam-dir: Remove unnecessary conversion in pollNodeTTL. - tordam - A library for peer discovery inside the Tor network (HTM) git clone https://git.parazyd.org/tordam (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit dbd1fa38db692acf68ba18b78564e2ed6bdd611b (DIR) parent 744a6b3b53755be364b37f7914b1961e9391bebf (HTM) Author: parazyd <parazyd@dyne.org> Date: Sat, 27 Oct 2018 13:49:58 +0200 dam-dir: Remove unnecessary conversion in pollNodeTTL. Diffstat: M cmd/dam-dir/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go t@@ -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)