fix keepalive to only output at five minute intervals

This commit is contained in:
Alex Groce
2018-07-14 12:00:47 -07:00
parent 6ffd9b4486
commit 375bfb4235
+1
View File
@@ -17,6 +17,7 @@ def logrun(cmd, file, timeout):
if (time.time() - lastOutput) > 300:
sys.stderr.write(".")
sys.stderr.flush()
lastOutput = time.time()
with open(file, 'r') as inf:
contents = inf.read()
if len(contents) > len(oldContents):