Fix frame SetBit slice calculation.

This commit is contained in:
Ben Johnson 2016-12-13 10:14:44 -07:00
parent edfbb5420f
commit 5cc9937f53
No known key found for this signature in database
GPG key ID: 81741CD251883081

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