Skip to content

Commit b32a422

Browse files
author
Pedro Fonseca
committed
Fix merge
1 parent 72b88b7 commit b32a422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renci.SshNet/ServiceFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public ISftpFileReader CreateSftpFileReader(string fileName, ISftpSession sftpSe
163163
{
164164
var fileAttributes = sftpSession.EndLStat(statAsyncResult);
165165
fileSize = fileAttributes.Size;
166-
maxPendingReads = Math.Min(100, (int) Math.Ceiling((double)(fileSize - (long)offset) / chunkSize) + 1);
166+
maxPendingReads = Math.Min(100, (int)Math.Ceiling((double)fileAttributes.Size / chunkSize) + 1);
167167
}
168168
catch (SshException ex)
169169
{

0 commit comments

Comments
 (0)