OverallProgress mostly 0 for PutFiles

Advertisement

isvaljek
Donor
Joined:
Posts:
4
Location:
Croatia

OverallProgress mostly 0 for PutFiles

I'm using a
ThreadPool.QueueUserWorkItem(new WaitCallback(DownloadFile), this );

Most of the time FileProgress moves from 0.0 to 1.0 but OverallProgress seems to be 0 most of the time for PutFiles method.

private void SessionFileTransferProgress(object sender, FileTransferProgressEventArgs e)
        {
            // Print transfer progress
            OverallTransferProgress = e.OverallProgress * 100.0;
            Console.Write("\r{0} {1} ({2} / {3})",e.Side.ToString(), e.FileName, e.FileProgress, OverallTransferProgress);
        }

I'm using WinSCP 5.7.5 NuGet.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: OverallProgress mostly 0 for PutFiles

Works for me.

Can you show us your code and session log file (Session.SessionLogPath)?

Reply with quote

Advertisement

You can post new topics in this forum