Fixes broken index sync test.

This commit is contained in:
Travis 2016-12-12 12:36:21 -06:00
parent dd63382ed3
commit 8d05f56df0
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

View file

@ -218,7 +218,7 @@ func (f *Frame) SetTimeQuantum(q TimeQuantum) error {
// Update value on frame.
f.timeQuantum = q
// Perist meta data to disk.
// Persist meta data to disk.
if err := f.saveMeta(); err != nil {
return err
}
@ -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