Skip to content

Commit d7bd51f

Browse files
committed
feat(libredirectionio): fix getting time as seconds, fix ignore file for router feature
1 parent 8a89dd0 commit d7bd51f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/api/log.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl Log {
8282
let mut referer = None;
8383
let mut content_type = None;
8484
let mut ips = Vec::new();
85-
let now = chrono::Utc::now().timestamp() as u128;
85+
let now = chrono::Utc::now().timestamp_millis() as u128;
8686
let duration = now.checked_sub(request_start_time);
8787

8888
match client_ip.parse::<Addr>() {

src/api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ mod impact;
1212
mod ip;
1313
mod log;
1414
mod marker;
15+
#[cfg(feature = "router")]
1516
mod redirection_loop;
1617
#[cfg(feature = "router")]
1718
mod rule;

0 commit comments

Comments
 (0)