aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-graph.c')
-rw-r--r--trace-graph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/trace-graph.c b/trace-graph.c
index 2ad32a8..66c2722 100644
--- a/trace-graph.c
+++ b/trace-graph.c
@@ -92,7 +92,7 @@ static int convert_dist_to_time(struct graph_info *ginfo, int dist)
92 return convert_x_to_time(ginfo, dist) - convert_x_to_time(ginfo, 0); 92 return convert_x_to_time(ginfo, dist) - convert_x_to_time(ginfo, 0);
93} 93}
94 94
95static int is_high_res(struct graph_info *ginfo) 95int is_high_res(struct graph_info *ginfo)
96{ 96{
97 return convert_dist_to_time(ginfo, PLOT_TRI_SIZE) < MAX_TRI_TIME; 97 return convert_dist_to_time(ginfo, PLOT_TRI_SIZE) < MAX_TRI_TIME;
98} 98}
@@ -1867,6 +1867,7 @@ static void draw_hashed_plots(struct graph_info *ginfo)
1867 struct record *record; 1867 struct record *record;
1868 struct plot_hash *hash; 1868 struct plot_hash *hash;
1869 struct plot_list *list; 1869 struct plot_list *list;
1870 unsigned long long old_start;
1870 1871
1871 set_cpus_to_rts(ginfo, ginfo->view_start_time); 1872 set_cpus_to_rts(ginfo, ginfo->view_start_time);
1872 1873
@@ -1899,8 +1900,9 @@ static void draw_hashed_plots(struct graph_info *ginfo)
1899 rt_graph_check_server_param(ARG, &dint, &dull, &dull); 1900 rt_graph_check_server_param(ARG, &dint, &dull, &dull);
1900#undef ARG 1901#undef ARG
1901 if (rt_graph_check_sys_release(ginfo, record, &rel)) { 1902 if (rt_graph_check_sys_release(ginfo, record, &rel)) {
1902 dull = rel - .1 * (ginfo->view_end_time - rel);; 1903 dull = rel - .1 * (ginfo->view_end_time - rel);
1903 ginfo->rtg_info.start_time = get_rts(ginfo, record); 1904 ginfo->rtg_info.start_time = get_rts(ginfo, record);
1905 //ginfo->view_end_time -= get_rts(ginfo, record) - ginfo->view_start_time;
1904 ginfo->view_start_time = get_rts(ginfo, record); 1906 ginfo->view_start_time = get_rts(ginfo, record);
1905 if (first) 1907 if (first)
1906 return; 1908 return;