set cache.BlockSizeK in KB not MB

master
Oliver Tonnhofer 2013-11-13 13:20:06 +01:00
parent 4eecb7fb94
commit ca7d7efe7d
1 changed files with 1 additions and 1 deletions

2
cache/osm.go vendored
View File

@ -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)