From b70e44ce27297c928564478c00d383883a0b0204 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 31 Dec 2019 23:23:20 +0000 Subject: [PATCH] add comment to peer alive time variable --- api/niflheim-api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/niflheim-api.py b/api/niflheim-api.py index 396c867..c78bb7a 100644 --- a/api/niflheim-api.py +++ b/api/niflheim-api.py @@ -15,6 +15,8 @@ DB_USER = "yggindex" DB_NAME = "yggindex" DB_HOST = "localhost" +# count peer alive if it was available not more that amount of seconds ago +# I'm using 1 hour beause of running cron job every 15 minutes ALIVE_SECONDS = 3600 # 1 hour