diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-11-15 18:08:54 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-18 12:44:06 +0000 |
commit | 94caf6f6e57a2c77097bb0661bcc05614658cf34 (patch) | |
tree | 0c3a609eebc0e8c0195d3437cee4722c203bbeda | |
parent | 2020eb2e5f5f6d3c568b69eb01396a494e9d8d51 (diff) | |
download | poky-94caf6f6e57a2c77097bb0661bcc05614658cf34.tar.gz |
pybootchartgui: Use correct header height
(From OE-Core rev: f7d1f49aa46a46ecb881386f0399aa7da288d805)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 9cbcbc1fb9..b1ad6e6627 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -278,7 +278,7 @@ def draw_chart(ctx, color, fill, chart_bounds, data, proc_tree, data_range): | |||
278 | 278 | ||
279 | bar_h = 55 | 279 | bar_h = 55 |
280 | meminfo_bar_h = 2 * bar_h | 280 | meminfo_bar_h = 2 * bar_h |
281 | header_h = 110 + 2 * (30 + bar_h) + 1 * (30 + meminfo_bar_h) | 281 | header_h = 60 |
282 | # offsets | 282 | # offsets |
283 | off_x, off_y = 220, 10 | 283 | off_x, off_y = 220, 10 |
284 | sec_w_base = 1 # the width of a second | 284 | sec_w_base = 1 # the width of a second |
@@ -389,7 +389,7 @@ def render_charts(ctx, options, clip, trace, curr_y, w, h, sec_w): | |||
389 | return curr_y | 389 | return curr_y |
390 | 390 | ||
391 | def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): | 391 | def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): |
392 | chart_rect = [off_x, curr_y+60, w, h - 2 * off_y - (curr_y+60) + proc_h] | 392 | chart_rect = [off_x, curr_y+header_h, w, h - 2 * off_y - (curr_y+header_h) + proc_h] |
393 | 393 | ||
394 | draw_legend_box (ctx, "Configure", \ | 394 | draw_legend_box (ctx, "Configure", \ |
395 | TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s) | 395 | TASK_COLOR_CONFIGURE, off_x , curr_y + 45, leg_s) |
@@ -407,7 +407,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): | |||
407 | draw_box_ticks(ctx, chart_rect, sec_w) | 407 | draw_box_ticks(ctx, chart_rect, sec_w) |
408 | draw_sec_labels(ctx, chart_rect, sec_w, 30) | 408 | draw_sec_labels(ctx, chart_rect, sec_w, 30) |
409 | 409 | ||
410 | y = curr_y+60 | 410 | y = curr_y+header_h |
411 | 411 | ||
412 | offset = min(trace.start.keys()) | 412 | offset = min(trace.start.keys()) |
413 | for s in sorted(trace.start.keys()): | 413 | for s in sorted(trace.start.keys()): |