Fix mod operation on logs
This commit is contained in:
parent
dacfad675d
commit
ef59c441d4
|
@ -310,7 +310,7 @@ func (c *AppendConverter) ScanControlData() {
|
|||
recordIndex += c.controlSize + int64(control.length)
|
||||
c.resourceIndex = append(c.resourceIndex, control)
|
||||
|
||||
if len(c.resourceIndex) == 1000 {
|
||||
if len(c.resourceIndex)%1000 == 0 {
|
||||
log.Printf("read %d control records\n", len(c.resourceIndex))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue