cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-773944 ] -s in ftp upload causes incorrect value in time_total

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Fri, 18 Jul 2003 14:33:44 -0700

Bugs item #773944, was opened at 2003-07-18 14:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=773944&group_id=976

Category: ftp
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: -s in ftp upload causes incorrect value in time_total

Initial Comment:
When trying to calculate ftp upload speeds I came upon
the following.

Solaris 8

$ uname -a
SunOS gorilla 5.8 Generic_108528-17 sun4u sparc
SUNW,UltraAX-i2
datapro_at_gorilla:/dataprowap/wap/1x_gorilla/1x_b1
$ /usr/bin/time /usr/celltools/bin/curl -V
curl 7.10.3 (sparc-sun-solaris2.8) libcurl/7.10.3
OpenSSL/0.9.6g zlib/1.1.3

Here's the problem:
/usr/bin/time curl -T foobar -s -w '%{time_total}'
ftp://USER:PSWD@IP/dest_name

The time returned is significantly shorter than the
system time. BUT when you run curl w/o the '-s' the
time matches exactly.

Since I was calculating the transfer speed as
(size_upload)/(time_total - time_starttransfer) when I
use the '-s' I get numbers that are impossible.
Without the '-s' everthing is great.

Jeff Baumgartner
jeff.baumgartner_AT_verizonwireless_DOT_com

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=773944&group_id=976

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
Received on 2003-07-18