Skip to content

Commit

Permalink
fix timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
kulukami committed Oct 8, 2022
1 parent 676e630 commit e80945d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/scanner/src/model/functional/cronjob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit e80945d

Please sign in to comment.