current uploading speed - WeOnlyDo Discussion board

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

by caiyi000, Tuesday, July 18, 2006, 05:25 (6513 days ago)

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

Re: current uploading speed

by wodDrazen, Tuesday, July 18, 2006, 09:25 (6513 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