From: Jan Pazdziora Date: Sat, 11 Jan 2025 15:11:23 +0000 (+0100) Subject: luci-app-nlbwmon: the default of database_compress is 1, match that behaviour in UI. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e91e147714841ff9ca27c9e853fb0e6124c9a16c;p=project%2Fluci.git luci-app-nlbwmon: the default of database_compress is 1, match that behaviour in UI. Signed-off-by: Jan Pazdziora --- 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 033c495a31..a0b01cd3e6 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.'));