From ca7d7efe7da4962954d432771c7a0085b50c5e3d Mon Sep 17 00:00:00 2001 From: Oliver Tonnhofer Date: Wed, 13 Nov 2013 13:20:06 +0100 Subject: [PATCH] set cache.BlockSizeK in KB not MB --- cache/osm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/osm.go b/cache/osm.go index 1cfefd0..ed4059e 100644 --- a/cache/osm.go +++ b/cache/osm.go @@ -154,7 +154,7 @@ func (c *cache) open(path string) error { opts.SetWriteBufferSize(c.options.WriteBufferSizeM * 1024 * 1024) } if c.options.BlockSizeK > 0 { - opts.SetBlockSize(c.options.BlockSizeK * 1024 * 1024) + opts.SetBlockSize(c.options.BlockSizeK * 1024) } db, err := levigo.Open(path, opts)