aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/block_weight.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/block_weight/block_weight.py')
-rwxr-xr-xtests/block_weight/block_weight.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/block_weight/block_weight.py b/tests/block_weight/block_weight.py
index ae75844e2..b23da3d77 100755
--- a/tests/block_weight/block_weight.py
+++ b/tests/block_weight/block_weight.py
@@ -23,9 +23,9 @@ def get_median(vec):
#temp = vec
temp = sorted(vec)
if len(temp) % 2 == 1:
- return temp[len(temp)/2]
+ return temp[len(temp)//2]
else:
- return int((temp[len(temp)/2]+temp[len(temp)/2-1])/2)
+ return int((temp[len(temp)//2]+temp[len(temp)//2-1])//2)
def LCG():
global lcg_seed