recycle log at <512B free

This commit is contained in:
Mikayla Fischler
2023-10-01 00:20:19 -04:00
parent 4d4dd4ed39
commit c0a602385d
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ local function _log(msg)
end end
end end
if out_of_space or (free_space(logger.path) < 100) then if out_of_space or (free_space(logger.path) < 512) then
-- delete the old log file before opening a new one -- delete the old log file before opening a new one
logger.file.close() logger.file.close()
fs.delete(logger.path) fs.delete(logger.path)

View File

@@ -8,7 +8,7 @@ local cc_strings = require("cc.strings")
local util = {} local util = {}
-- scada-common version -- scada-common version
util.version = "1.1.1" util.version = "1.1.2"
-- ENVIRONMENT CONSTANTS -- -- ENVIRONMENT CONSTANTS --