summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pybootchartgui/pybootchartgui/draw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/draw.py b/scripts/pybootchartgui/pybootchartgui/draw.py
index 3926bdd11e..4e04b06427 100644
--- a/scripts/pybootchartgui/pybootchartgui/draw.py
+++ b/scripts/pybootchartgui/pybootchartgui/draw.py
@@ -813,7 +813,7 @@ def draw_processes_recursively(ctx, proc, proc_tree, y, proc_h, rect, clip) :
813 cmdString = proc.cmd 813 cmdString = proc.cmd
814 else: 814 else:
815 cmdString = '' 815 cmdString = ''
816 if (OPTIONS.show_pid or OPTIONS.show_all) and ipid is not 0: 816 if (OPTIONS.show_pid or OPTIONS.show_all) and ipid != 0:
817 cmdString = cmdString + " [" + str(ipid // 1000) + "]" 817 cmdString = cmdString + " [" + str(ipid // 1000) + "]"
818 if OPTIONS.show_all: 818 if OPTIONS.show_all:
819 if proc.args: 819 if proc.args:
@@ -911,7 +911,7 @@ class CumlSample:
911 if self.color is None: 911 if self.color is None:
912 i = self.next() % HSV_MAX_MOD 912 i = self.next() % HSV_MAX_MOD
913 h = 0.0 913 h = 0.0
914 if i is not 0: 914 if i != 0:
915 h = (1.0 * i) / HSV_MAX_MOD 915 h = (1.0 * i) / HSV_MAX_MOD
916 s = 0.5 916 s = 0.5
917 v = 1.0 917 v = 1.0