From 4ded3519b36a10ab846b467cf9cdf4aba349b219 Mon Sep 17 00:00:00 2001 From: Jan Pazdziora Date: Sat, 11 Jan 2025 16:11:23 +0100 Subject: [PATCH] luci-app-nlbwmon: the default of database_compress is 1, match that behaviour in UI. Signed-off-by: Jan Pazdziora --- .../htdocs/luci-static/resources/view/nlbw/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js index 033c495a31bf..a0b01cd3e60e 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js @@ -150,6 +150,7 @@ return view.extend({ o = s.taboption('advanced', form.Flag, 'database_compress', _('Compress database'), _('Whether to gzip compress archive databases. Compressing the database files makes accessing old data slightly slower but helps to reduce storage requirements.')); + o.default = o.enabled; o = s.taboption('advanced', form.Value, 'database_generations', _('Stored periods'), _('Maximum number of accounting periods to keep, use zero to keep databases forever.'));