From e80945d5b1f5fa289ae193d19cd93aa20cb3e04e Mon Sep 17 00:00:00 2001 From: kulukami Date: Sat, 8 Oct 2022 17:29:28 +0800 Subject: [PATCH] fix timestamp --- plugins/scanner/src/model/functional/cronjob.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/scanner/src/model/functional/cronjob.rs b/plugins/scanner/src/model/functional/cronjob.rs index e794a522a..dab7f8594 100644 --- a/plugins/scanner/src/model/functional/cronjob.rs +++ b/plugins/scanner/src/model/functional/cronjob.rs @@ -46,7 +46,7 @@ impl Cronjob { let sender_proc = sender.clone(); let s_locker_proc = s_locker.clone(); let job_dir = thread::spawn(move || loop { - let start_timestap = Clock::now_since_epoch().as_secs(); + let start_timestamp = Clock::now_since_epoch().as_secs(); info!("[CronjobDir] Scan started at : {}", start_timestamp); for conf in configs::SCAN_DIR_CONFIG { let mut w_dir = WalkDir::new(conf.fpath) @@ -129,7 +129,7 @@ impl Cronjob { }); let job_proc = thread::spawn(move || loop { - let start_timestap = Clock::now_since_epoch().as_secs(); + let start_timestamp = Clock::now_since_epoch().as_secs(); info!("[CronjobProc] Scan started at : {}", start_timestamp); let dir_p = fs::read_dir("/proc").unwrap();