Skip to content

Commit

Permalink
fix crashers rendering with no kernel boot message state
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Meeks committed Jan 15, 2010
1 parent 3d0aa2f commit 4ec93df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions bootchartd
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ wait_boot()
# Give the exit process some time to start
stopinitrd=$( pidof stopinitrd )
if [ -n "$stopinitrd" ] ; then
umount proc
# move initrd logs somewhere safe (?)
mv $LOG_DIR/* /dev/shm/
wait
Expand Down
1 change: 1 addition & 0 deletions pybootchartgui/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ def __init__(self):
self.disk_stats = None
self.ps_stats = None
self.cpu_stats = None
self.kernel = None

def valid(self):
return self.headers != None and self.disk_stats != None and self.ps_stats != None and self.cpu_stats != None
Expand Down
5 changes: 4 additions & 1 deletion pybootchartgui/process_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def __init__(self, writer, kernel, psstats, monitoredApp, prune, idle, for_testi

# tack the kernel data onto psstats for now ...
# self.psstats = psstats
process_list = kernel + psstats.process_list
if kernel is None:
process_list = psstats.process_list
else:
process_list = kernel + psstats.process_list
self.process_list = sorted(process_list, key = lambda p: p.pid)
self.sample_period = psstats.sample_period

Expand Down

0 comments on commit 4ec93df

Please sign in to comment.