Skip to content

Commit 11c93db

Browse files
author
Pedro Fonseca
committed
Fix merge
1 parent 1bdb92f commit 11c93db

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
@@ -132,7 +132,7 @@ public ISftpFileReader CreateSftpFileReader(string fileName, ISftpSession sftpSe
132132
{
133133
var fileAttributes = sftpSession.EndLStat(statAsyncResult);
134134
fileSize = fileAttributes.Size;
135-
maxPendingReads = Math.Min(100, (int) Math.Ceiling((double)(fileSize - (long)offset) / chunkSize) + 1);
135+
maxPendingReads = Math.Min(100, (int)Math.Ceiling((double)fileAttributes.Size / chunkSize) + 1);
136136
}
137137
catch (SshException ex)
138138
{

0 commit comments

Comments
 (0)