current uploading speed (wodSFTP / wodSFTP.NET / wodSFTPdll)

by caiyi000 @, (6864 days ago)

current uploading speed
I want to get current uploading speed.Please give me some code Thanks

locked

Re: current uploading speed

by wodDrazen @, (6864 days ago) @ caiyi000

Hi,


Unfortunately, you cannot get upload speed with wodSFTP.

Only that can help you and maybe solve your problem is Progress Event which is fired during file transfer.
There you can find Position (Current transfer position.) and Total (Total number of bytes that should be transferred).

Here is example which shows how many percentage is currently uploaded:
--------------------------------
Private Sub sftp1_Progress(ByVal Position As Long, ByVal Total As Long)
Debug.Print (Position / Total) * 100
End Sub
--------------------------------

Hope this helps.


Regards,
Drazen

locked