fix wrong logic about reader isRandomMode()

This commit is contained in:
chrislu 2022-08-07 10:13:04 -07:00
parent d3d52b1818
commit 928d29af9e

View file

@ -25,5 +25,5 @@ func (rp *ReaderPattern) MonitorReadAt(offset int64, size int) {
}
func (rp *ReaderPattern) IsRandomMode() bool {
return rp.isSequentialCounter >= 0
return rp.isSequentialCounter < 0
}