Skip to content

Commit 4717050

Browse files
authored
Merge pull request #252 from ties/feature/use-originated-time-for-tabledump
2 parents 0453969 + 3927066 commit 4717050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser/mrt/mrt_elem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl Elementor {
387387
.map(|as_path| as_path.iter_origins().collect());
388388

389389
elems.push(BgpElem {
390-
timestamp,
390+
timestamp: msg.originated_time as f64,
391391
elem_type: ElemType::ANNOUNCE,
392392
peer_ip: msg.peer_ip,
393393
peer_asn: msg.peer_asn,
@@ -489,7 +489,7 @@ impl Elementor {
489489
.map(|as_path| as_path.iter_origins().collect());
490490

491491
elems.push(BgpElem {
492-
timestamp,
492+
timestamp: e.originated_time as f64,
493493
elem_type: ElemType::ANNOUNCE,
494494
peer_ip: peer.peer_ip,
495495
peer_asn: peer.peer_asn,

0 commit comments

Comments
 (0)