Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
uint64_t last_real_timestamp;
uint64_t delta_real_timestamp;
+
+ bool negative_timestamp_warning_done;
};
enum stream_packet_context_quarks_enum {
struct tm tm;
time_t time_s = (time_t) ts_sec_abs;
- if (is_negative) {
+ if (is_negative && !pretty->negative_timestamp_warning_done) {
// TODO: log instead
fprintf(stderr, "[warning] Fallback to [sec.ns] to print negative time value. Use --clock-seconds.\n");
+ pretty->negative_timestamp_warning_done = true;
goto seconds;
}