mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Fix output file chunks sizes
Should reset file chunk size only when we doing final file close
This commit is contained in:
+2
-1
@@ -195,7 +195,6 @@ func (o *FileOutput) filename() string {
|
||||
|
||||
if nextChunk {
|
||||
fileIndex++
|
||||
o.currentFileSize = 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,6 +308,8 @@ func (o *FileOutput) closeLocked() error {
|
||||
}
|
||||
|
||||
o.closed = true
|
||||
o.currentFileSize = 0
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user