git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
5240ec5
)
clip y coordinate to prevent overflow error in chain visualization
author
Forrest Voight
<forrest@forre.st>
Fri, 26 Aug 2011 04:21:24 +0000 (
00:21
-0400)
committer
Forrest Voight
<forrest@forre.st>
Fri, 26 Aug 2011 04:21:24 +0000 (
00:21
-0400)
p2pool/draw.py
patch
|
blob
|
history
diff --git
a/p2pool/draw.py
b/p2pool/draw.py
index
82cc591
..
1516c10
100644
(file)
--- a/
p2pool/draw.py
+++ b/
p2pool/draw.py
@@
-21,6
+21,8
@@
def get_uniform(bound, *data):
def get_pos(share, t, d):
x = 5 + get_uniform(d.get_width() - 10, share.hash, "pos")
y = d.get_height() - (t - share.time_seen)*10
+ if y < -10000: y = -10000
+ if y > 10000: y = 10000
return v(x, y)
def get_color(data):