@@ -20,22 +20,10 @@ pub struct Config {
2020 pub ntfy_url : Option < String > ,
2121 pub enabled_notifications : Vec < NotificationType > ,
2222 pub analyzers : AnalyzerConfig ,
23- /// Minimum disk space (MB) required to start recording
24- #[ serde( default = "default_min_space_to_start_recording_mb" ) ]
2523 pub min_space_to_start_recording_mb : u64 ,
26- /// Minimum disk space (MB) to continue recording (stops if below this)
27- #[ serde( default = "default_min_space_to_continue_recording_mb" ) ]
2824 pub min_space_to_continue_recording_mb : u64 ,
2925}
3026
31- fn default_min_space_to_start_recording_mb ( ) -> u64 {
32- 1
33- }
34-
35- fn default_min_space_to_continue_recording_mb ( ) -> u64 {
36- 1
37- }
38-
3927impl Default for Config {
4028 fn default ( ) -> Self {
4129 Config {
@@ -49,8 +37,8 @@ impl Default for Config {
4937 analyzers : AnalyzerConfig :: default ( ) ,
5038 ntfy_url : None ,
5139 enabled_notifications : vec ! [ NotificationType :: Warning , NotificationType :: LowBattery ] ,
52- min_space_to_start_recording_mb : default_min_space_to_start_recording_mb ( ) ,
53- min_space_to_continue_recording_mb : default_min_space_to_continue_recording_mb ( ) ,
40+ min_space_to_start_recording_mb : 1 ,
41+ min_space_to_continue_recording_mb : 1 ,
5442 }
5543 }
5644}
0 commit comments