Skip to content

Commit

Permalink
[#53101] linux-client: Fix loop condition
Browse files Browse the repository at this point in the history
  • Loading branch information
msierszulski committed Feb 6, 2024
1 parent 1961b8a commit f8d65ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devices/linux-client/delta/block_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (bdw *blockDeviceWriter) bufferedWrite(b []byte) (int, error) {
}

framesToWrite := bdw.buffer.Len() / int(bdw.frameSize)
for ; framesToWrite < 0; framesToWrite-- {
for ; framesToWrite > 0; framesToWrite-- {
_, err = bdw.writeFrameIfDiff(bdw.buffer.Next(bdw.frameSize))
if err != nil {
return 0, err
Expand Down

0 comments on commit f8d65ce

Please sign in to comment.