curl-library
Re: progress.c patch
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Sat, 17 Apr 2004 21:02:18 +0200
Date: Sat, 17 Apr 2004 21:02:18 +0200
> > The timespent value is 1000 times too high :)
> > - timespent = (long)data->progress.timespent*1000.0;
> > + timespent = (long)data->progress.timespent;
> Upps. That was my fault, sorry.
Forgiven :) Come to think of it, better to say
timespent = (long)(data->progress.timespent + 0.5);
to round it correcly.
--gv
Received on 2004-04-17