tFix typo in pollNodeTTL. - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c1244f4e38f1d46d25d10688a8ea921cac7cc8ba
DIR parent fb7eae1dc0bea7f5f4a0c16ce46685e18adb4902
HTML Author: parazyd <parazyd@dyne.org>
Date: Mon, 29 Oct 2018 10:32:23 +0100
Fix typo 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 := (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)