From c0a602385d6343012f78173ad77fdbc6942d9344 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sun, 1 Oct 2023 00:20:19 -0400 Subject: [PATCH] recycle log at <512B free --- scada-common/log.lua | 2 +- scada-common/util.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scada-common/log.lua b/scada-common/log.lua index eadc763..8a42e45 100644 --- a/scada-common/log.lua +++ b/scada-common/log.lua @@ -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) diff --git a/scada-common/util.lua b/scada-common/util.lua index 144f88d..a1a1b4a 100644 --- a/scada-common/util.lua +++ b/scada-common/util.lua @@ -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 --