Skip to content
Snippets Groups Projects
Commit 32523870 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

modified the progress meter usage

parent 8f7ae653
No related branches found
No related tags found
No related merge requests found
...@@ -143,12 +143,8 @@ Transfer (struct UrlData *data, ...@@ -143,12 +143,8 @@ Transfer (struct UrlData *data,
#define KEEP_READ 1 #define KEEP_READ 1
#define KEEP_WRITE 2 #define KEEP_WRITE 2
pgrsStartNow(data);
if (!getheader) { if (!getheader) {
header = FALSE; header = FALSE;
#if 0
ProgressInit (data, size);
#endif
if(size > 0) if(size > 0)
pgrsSetDownloadSize(data, size); pgrsSetDownloadSize(data, size);
} }
...@@ -301,9 +297,6 @@ Transfer (struct UrlData *data, ...@@ -301,9 +297,6 @@ Transfer (struct UrlData *data,
if ('\n' == *p) if ('\n' == *p)
p++; /* pass the \n byte */ p++; /* pass the \n byte */
#if 0
ProgressInit (data, size); /* init progress meter */
#endif
pgrsSetDownloadSize(data, size); pgrsSetDownloadSize(data, size);
header = FALSE; /* no more header to parse! */ header = FALSE; /* no more header to parse! */
...@@ -546,11 +539,6 @@ Transfer (struct UrlData *data, ...@@ -546,11 +539,6 @@ Transfer (struct UrlData *data,
} }
now = tvnow(); now = tvnow();
#if 0
if (!header) {
ProgressShow (data, bytecount, start, now, FALSE);
}
#endif
pgrsUpdate(data); pgrsUpdate(data);
urg = speedcheck (data, now); urg = speedcheck (data, now);
...@@ -576,9 +564,6 @@ Transfer (struct UrlData *data, ...@@ -576,9 +564,6 @@ Transfer (struct UrlData *data,
contentlength-bytecount); contentlength-bytecount);
return URG_PARTIAL_FILE; return URG_PARTIAL_FILE;
} }
#if 0
ProgressShow (data, bytecount, start, now, TRUE);
#endif
pgrsUpdate(data); pgrsUpdate(data);
if(bytecountp) if(bytecountp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment