summaryrefslogtreecommitdiffstats
path: root/scripts/pybootchartgui
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/pybootchartgui')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 16739a0fa1..4d76ce6e8e 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -371,6 +371,8 @@ def extents(options, xscale, trace):
371 h += 30 + bar_h 371 h += 30 + bar_h
372 if trace.mem_stats: 372 if trace.mem_stats:
373 h += meminfo_bar_h 373 h += meminfo_bar_h
374 if trace.net_stats:
375 h += (30 + bar_h) * len(trace.net_stats)
374 376
375 # Allow for width of process legend and offset 377 # Allow for width of process legend and offset
376 if w < (720 + off_x): 378 if w < (720 + off_x):
@@ -844,7 +846,7 @@ def draw_header (ctx, headers, duration):
844 toshow = [ 846 toshow = [
845 ('system.uname', 'uname', lambda s: s), 847 ('system.uname', 'uname', lambda s: s),
846 ('system.release', 'release', lambda s: s), 848 ('system.release', 'release', lambda s: s),
847 ('system.cpu', 'CPU', lambda s: re.sub('model name\s*:\s*', '', s, 1)), 849 ('system.cpu', 'CPU', lambda s: re.sub(r'model name\s*:\s*', '', s, 1)),
848 ('system.kernel.options', 'kernel options', lambda s: s), 850 ('system.kernel.options', 'kernel options', lambda s: s),
849 ] 851 ]
850 852