diff --git a/src/bin/fingerprint.rs b/src/bin/fingerprint.rs index 9102a55..595a026 100644 --- a/src/bin/fingerprint.rs +++ b/src/bin/fingerprint.rs @@ -16,9 +16,9 @@ use walkdir::WalkDir; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] struct Args { - /// Number years to search through - #[arg(short, long, default_value_t = 1)] - years: usize, + /// Number days to search through + #[arg(short, long, default_value_t = 365)] + days: i64, /// Enable verbose logging #[arg(short, long, default_value_t = false)] @@ -38,9 +38,8 @@ struct Args { fn main() -> anyhow::Result<()> { let args = Args::parse(); - let n = 1; - // Just check messages from the last N years. - let max_age = 60 * 60 * 24 * 365 * n; + // Just check messages from the last N days. + let max_age = 60 * 60 * 24 * args.days; let start = std::time::Instant::now(); let unix_secs = SystemTime::now() .duration_since(UNIX_EPOCH)