curl-library
Re: Some patches
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 5 May 2004 15:39:12 +0200 (CEST)
Date: Wed, 5 May 2004 15:39:12 +0200 (CEST)
On Wed, 5 May 2004, Gisle Vanem wrote:
> But now the percentages are always 0 (at least here).
Uh, right. It used to be a double in there. So let's do like this:
ulpercen = (long)(100*(data->progress.uploaded/100) /
(data->progress.size_ul/100) );
... which causes very small (<100) values to turn up as wrong percentage, but
I don't think that matters too much.
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2004-05-05