diff options
Diffstat (limited to 'scripts/pybootchartgui/pybootchartgui/draw.py')
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/draw.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py index 4a2ffd79e1..8c574be50c 100644 --- a/scripts/pybootchartgui/pybootchartgui/draw.py +++ b/scripts/pybootchartgui/pybootchartgui/draw.py | |||
@@ -314,6 +314,10 @@ def extents(options, xscale, trace): | |||
314 | end = trace.processes[proc][1] | 314 | end = trace.processes[proc][1] |
315 | processes += 1 | 315 | processes += 1 |
316 | 316 | ||
317 | if trace.min is not None and trace.max is not None: | ||
318 | start = trace.min | ||
319 | end = trace.max | ||
320 | |||
317 | w = int ((end - start) * sec_w_base * xscale) + 2 * off_x | 321 | w = int ((end - start) * sec_w_base * xscale) + 2 * off_x |
318 | h = proc_h * processes + header_h + 2 * off_y | 322 | h = proc_h * processes + header_h + 2 * off_y |
319 | 323 | ||
@@ -433,7 +437,7 @@ def render_processes_chart(ctx, options, trace, curr_y, w, h, sec_w): | |||
433 | 437 | ||
434 | y = curr_y+header_h | 438 | y = curr_y+header_h |
435 | 439 | ||
436 | offset = min(trace.start.keys()) | 440 | offset = trace.min or min(trace.start.keys()) |
437 | for s in sorted(trace.start.keys()): | 441 | for s in sorted(trace.start.keys()): |
438 | for val in sorted(trace.start[s]): | 442 | for val in sorted(trace.start[s]): |
439 | if not options.app_options.show_all and \ | 443 | if not options.app_options.show_all and \ |