diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-02-11 10:55:34 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-11 10:55:34 -0500 |
commit | ef9f0772f8d02565b70bfc580cdefd003b58a1b4 (patch) | |
tree | a6b3109a5cea246cdf60164415a54efc61329878 | |
parent | 5e54b3ae83840f45b3eca65e4ab384098735d1e1 (diff) |
trace-graph: Initialize time in task plot display
The task plot display did not always initialize the time
that was displayed.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | trace-plot-task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c index fe109c4..9a42b4b 100644 --- a/trace-plot-task.c +++ b/trace-plot-task.c | |||
@@ -540,11 +540,11 @@ int task_plot_display_info(struct graph_info *ginfo, | |||
540 | pid = pevent_data_pid(ginfo->pevent, record); | 540 | pid = pevent_data_pid(ginfo->pevent, record); |
541 | comm = pevent_data_comm_from_pid(ginfo->pevent, pid); | 541 | comm = pevent_data_comm_from_pid(ginfo->pevent, pid); |
542 | 542 | ||
543 | convert_nano(record->ts, &sec, &usec); | ||
544 | |||
543 | if (record->ts > time - 2/ginfo->resolution && | 545 | if (record->ts > time - 2/ginfo->resolution && |
544 | record->ts < time + 2/ginfo->resolution) { | 546 | record->ts < time + 2/ginfo->resolution) { |
545 | 547 | ||
546 | convert_nano(record->ts, &sec, &usec); | ||
547 | |||
548 | type = pevent_data_type(pevent, record); | 548 | type = pevent_data_type(pevent, record); |
549 | event = pevent_data_event_from_type(pevent, type); | 549 | event = pevent_data_event_from_type(pevent, type); |
550 | if (event) { | 550 | if (event) { |