mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 00:52:00 +01:00
Added timestamp for JSON export format
This commit is contained in:
parent
c05859372c
commit
5f928d1010
@ -452,6 +452,8 @@ bool serialize_simple_packet_to_json(const simple_packet_t& packet, nlohmann::js
|
||||
}
|
||||
|
||||
try {
|
||||
// We use arrival_time as traffic telemetry protocols do not provide this time in a reliable manner
|
||||
json_packet["timestamp"] = packet.arrival_time;
|
||||
|
||||
json_packet["ip_version"] = protocol_version;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user