Permalink
Browse files

Update mbutil/util.py

Fix fix tiles count error on compression
  • Loading branch information...
1 parent ac9d2f0 commit a15111f02ae0f4c6bbf2493d7c25d3375e11fa74 @yellow-sky committed Sep 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mbutil/util.py
View
@@ -69,7 +69,7 @@ def compression_do(cur, con, chunk):
res = cur.fetchone()
total_tiles = res[0]
logging.debug("%d total tiles to fetch" % total_tiles)
- for i in range(total_tiles / chunk):
+ for i in range(total_tiles / chunk + 1):
logging.debug("%d / %d rounds done" % (i, (total_tiles / chunk)))
ids = []
files = []

0 comments on commit a15111f

Please sign in to comment.