Skip to content

Commit c0b4580

Browse files
committed
fix: correct split size calculation in Save method
1 parent 280fd6e commit c0b4580

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎storage/telegram/telegram.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (t *Telegram) Save(ctx context.Context, r io.Reader, storagePath string) er
9595
if !seekable || rs == nil {
9696
return fmt.Errorf("reader must implement io.ReadSeeker")
9797
}
98-
splitSize := t.config.SplitSizeMB * 1024 * 1000
98+
splitSize := t.config.SplitSizeMB * 1024 * 1024
9999
if splitSize <= 0 {
100100
splitSize = DefaultSplitSize
101101
}

0 commit comments

Comments
 (0)