Fix frame SetBit slice calculation.

This commit is contained in:
Ben Johnson 2016-12-13 10:14:44 -07:00
parent f53cdd3275
commit 9161ff122a

View file

@ -288,7 +288,7 @@ func (f *Frame) newFragment(path string, slice uint64) *Fragment {
// SetBit sets a bit within the frame.
func (f *Frame) SetBit(bitmapID, profileID uint64) (changed bool, err error) {
slice := bitmapID / SliceWidth
slice := profileID / SliceWidth
frag, err := f.CreateFragmentIfNotExists(slice)
if err != nil {
return changed, err