1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-05 03:36:09 +02:00

Added timestamp for JSON export format

This commit is contained in:
Pavel Odintsov 2023-03-10 22:41:18 +01:00
parent c05859372c
commit 5f928d1010

View File

@ -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;