Message ID | 20210324141451.0b4af13b@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | cd9cf71c1ac1c57037e2749eef210116b9f1ce64 |
Headers | show |
Series | libtraceevent: Allow for decimal time stamps less than zero | expand |
diff --git a/src/event-parse.c b/src/event-parse.c index 2a10c2e..e2a7278 100644 --- a/src/event-parse.c +++ b/src/event-parse.c @@ -6110,7 +6110,7 @@ static void print_event_time(struct tep_handle *tep, struct trace_seq *s, while (pr--) p10 *= 10; - if (p10 > 1 && p10 < time) + if (p10 > 1) trace_seq_printf(s, "%5llu.%0*llu", time / p10, prec, time % p10); else trace_seq_printf(s, "%12llu", time);