mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
recycle log at <512B free
This commit is contained in:
parent
4d4dd4ed39
commit
c0a602385d
@ -54,7 +54,7 @@ local function _log(msg)
|
||||
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
|
||||
logger.file.close()
|
||||
fs.delete(logger.path)
|
||||
|
@ -8,7 +8,7 @@ local cc_strings = require("cc.strings")
|
||||
local util = {}
|
||||
|
||||
-- scada-common version
|
||||
util.version = "1.1.1"
|
||||
util.version = "1.1.2"
|
||||
|
||||
-- ENVIRONMENT CONSTANTS --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user