diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 20:48:30 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 20:48:30 +0000 |
commit | 5d52e1673483c6ed146ced3c7c086594c0a484ac (patch) | |
tree | 88ca0347d8bbadce7fd02036e5b5a2c34887ac31 /ui/gtk/graph_analysis.c | |
parent | a66a717d46af19111dbde3dc9e72a2bd32734692 (diff) |
Add helper function to epan_session which can be used to get absolute timestamp of given frame.
Remove ->prev_cap, for testing purpose also replace ->prev_dis with number of previously displayed frame number.
This patch reduce size of frame_data by 8B (amd64)
This is what (I think) was suggested by Guy in comment 13 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5821#c13)
svn path=/trunk/; revision=50765
Diffstat (limited to 'ui/gtk/graph_analysis.c')
-rw-r--r-- | ui/gtk/graph_analysis.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/graph_analysis.c b/ui/gtk/graph_analysis.c index 9521803cb4..3665964fa5 100644 --- a/ui/gtk/graph_analysis.c +++ b/ui/gtk/graph_analysis.c @@ -450,7 +450,7 @@ dialog_graph_dump_to_file(char *pathname, graph_analysis_data_t *user_data) g_string_printf(label_string, "|%.3f", nstime_to_sec(&gai->fd->rel_ts)); #endif /* Write the time, using the same format as in the time col */ - set_fd_time(gai->fd, time_str); + set_fd_time(cfile.epan, gai->fd, time_str); g_string_printf(label_string, "|%s", time_str); enlarge_string(label_string, 10, ' '); fprintf(of, "%s", label_string->str); @@ -775,7 +775,7 @@ static void dialog_graph_draw(graph_analysis_data_t *user_data) g_snprintf(label_string, MAX_LABEL, "%.3f", nstime_to_sec(&user_data->dlg.items[display_items-1].fd->rel_ts)); #endif /* Write the time, using the same format as in th etime col */ - set_fd_time(user_data->dlg.items[display_items-1].fd, time_str); + set_fd_time(cfile.epan, user_data->dlg.items[display_items-1].fd, time_str); g_snprintf(label_string, MAX_LABEL, "%s", time_str); layout = gtk_widget_create_pango_layout(user_data->dlg.draw_area_time, label_string); middle_layout = gtk_widget_create_pango_layout(user_data->dlg.draw_area_time, label_string); @@ -968,7 +968,7 @@ static void dialog_graph_draw(graph_analysis_data_t *user_data) g_snprintf(label_string, MAX_LABEL, "%.3f", nstime_to_sec(&user_data->dlg.items[current_item].fd->rel_ts)); #endif /* Draw the time */ - set_fd_time(user_data->dlg.items[current_item].fd, time_str); + set_fd_time(cfile.epan, user_data->dlg.items[current_item].fd, time_str); g_snprintf(label_string, MAX_LABEL, "%s", time_str); pango_layout_set_text(layout, label_string, -1); pango_layout_get_pixel_size(layout, &label_width, &label_height); |