pub struct MonitorConfig {
pub min_pause_duration: u64,
pub pause_threshold: u64,
pub poll_interval: u64,
pub activity_threshold: u64,
pub min_work_interval: u64,
pub pause_merge_gap: u64,
}Expand description
Activity monitor thresholds and intervals.
Fields§
§min_pause_duration: u64Minimum pause length in minutes to keep as a pause record; shorter interruptions are noise, not breaks.
pause_threshold: u64Seconds without input before a pause is detected.
poll_interval: u64Milliseconds between activity checks.
activity_threshold: u64Seconds of sustained activity required to start a workday - keeps a stray mouse nudge from opening the day.
min_work_interval: u64Minimum work interval in minutes; shorter ones are filtered from report display.
pause_merge_gap: u64Maximum gap in seconds between two consecutive pauses to merge them.
When the activity monitor briefly registers a stray input between two otherwise continuous inactivity periods, it splits a single break into several adjacent pause records. Pauses separated by a gap no longer than this value are treated as one continuous pause so that sub-threshold segments are not dropped from calculations. The value should stay small (a few tens of seconds) so that genuine short work periods between pauses are preserved rather than swallowed into the break.
Trait Implementations§
Source§impl Clone for MonitorConfig
impl Clone for MonitorConfig
Source§fn clone(&self) -> MonitorConfig
fn clone(&self) -> MonitorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more