aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 6f842af4550b..d948475585ce 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -5527,8 +5527,10 @@ static void print_event_time(struct tep_handle *tep, struct trace_seq *s,
5527 if (divstr && isdigit(*(divstr + 1))) 5527 if (divstr && isdigit(*(divstr + 1)))
5528 div = atoi(divstr + 1); 5528 div = atoi(divstr + 1);
5529 time = record->ts; 5529 time = record->ts;
5530 if (div) 5530 if (div) {
5531 time += div / 2;
5531 time /= div; 5532 time /= div;
5533 }
5532 pr = prec; 5534 pr = prec;
5533 while (pr--) 5535 while (pr--)
5534 p10 *= 10; 5536 p10 *= 10;