Fix two minor typos that caused schedgraph to exit with an exception

when running on traces referencing >2 CPUs.
This commit is contained in:
rwatson 2005-11-06 17:43:25 +00:00
parent 33ac50a107
commit 192c946ba5

View File

@ -738,9 +738,9 @@ def drawcpu(self, canvas, xpos, ypos):
elif (cpu == 2): elif (cpu == 2):
color = 'light blue' color = 'light blue'
elif (cpu == 3): elif (cpu == 3):
color == 'light green' color = 'light green'
else: else:
color == "white" color = "white"
l = canvas.create_rectangle(self.cpux, l = canvas.create_rectangle(self.cpux,
ypos - self.ysize() - canvas.bdheight, ypos - self.ysize() - canvas.bdheight,
xpos, ypos + canvas.bdheight, fill=color, width=0, xpos, ypos + canvas.bdheight, fill=color, width=0,