version 2.25, 1996/09/09 18:53:24
|
version 2.25.2.1, 1996/10/29 21:26:45
|
Line 56 PUBLIC BOOL HTProgress (HTRequest * requ
|
Line 56 PUBLIC BOOL HTProgress (HTRequest * requ
|
if (request) { |
if (request) { |
long cl = HTAnchor_length(HTRequest_anchor(request)); |
long cl = HTAnchor_length(HTRequest_anchor(request)); |
if (cl > 0) { |
if (cl > 0) { |
long b_read = HTRequest_bytesRead(request); |
long b_read = HTRequest_bodyRead(request); |
double pro = (double) b_read/cl*100; |
double pro = (double) b_read/cl*100; |
char buf[10]; |
char buf[10]; |
HTNumToStr((unsigned long) cl, buf, 10); |
HTNumToStr((unsigned long) cl, buf, 10); |