luci-app-nlbwmon: the default of database_compress is 1, match that behaviour in UI.
authorJan Pazdziora <jan.pazdziora@code.adelton.com>
Sat, 11 Jan 2025 15:11:23 +0000 (16:11 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 14 Jan 2025 01:05:33 +0000 (02:05 +0100)
Signed-off-by: Jan Pazdziora <jan.pazdziora@code.adelton.com>
applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/config.js

index 033c495a31bf0711c3df06894d0f5612d2bfcb66..a0b01cd3e60e26b9a3a300af83925a96a21f5e11 100644 (file)
@@ -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.'));