in reply to
$ftp->put() transfer stats
Store off the
time
before you start your
put
(possibly using
Time::HiRes
if you want more precision)
Call
put
Subtract the current
time
from the start time
Divide the size of what you sent by the duration
Profit!
The cake is a lie.
The cake is a lie.
The cake is a lie.
Comment on
Re: $ftp->put() transfer stats
Select
or
Download
Code
Replies are listed 'Best First'.
Re^2: $ftp->put() transfer stats
by
chananf
(Initiate)
on Aug 01, 2010 at 18:32 UTC
Thank you - that is good to know!
Also,I would like to get # bytes transferred
We have a client that thinks we are sending zero byte files
Now, we do along the following to verify # bytes sent :
ftp->put($file, $remote_name);
ftp->size($remote_name);
I would prefer if we could get a diagnostic from the ftp object with num bytes sent
Thanks!
[reply]
In Section
Seekers of Perl Wisdom