commit c1244f4e38f1d46d25d10688a8ea921cac7cc8ba
parent fb7eae1dc0bea7f5f4a0c16ce46685e18adb4902
Author: parazyd <parazyd@dyne.org>
Date: Mon, 29 Oct 2018 10:32:23 +0100
Fix typo in pollNodeTTL.
Diffstat:
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 := (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)