Skip to content

Commit 15f9e8c

Browse files
committed
fixed trimed lines
1 parent 108ce7c commit 15f9e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alarmcode/logs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def trimLogFile(self, lines):
7878
""" Trims the log file in an interval of 24 hours to 1000 lines """
7979

8080
# lines = 1000 # Number of lines of logs to keep
81-
repeat_every_n_sec = 86400 # 24 Hours
82-
while True and lines is None and lines > 0:
81+
repeat_every_n_sec = 3600 # 1 Hours
82+
while True and lines > 0:
8383
with open(self.logfile, 'r') as f:
8484
data = f.readlines()
8585
with open(self.logfile, 'w') as f:

0 commit comments

Comments
 (0)