version 1.46, 2004/02/17 05:39:51 |
version 1.47, 2004/03/03 09:30:42 |
|
|
max_req = 1; |
max_req = 1; |
progress_counter = 0; |
progress_counter = 0; |
|
|
if (showprogress) { |
if (showprogress && size != 0) |
if (size) |
start_progress_meter(remote_path, size, &progress_counter); |
start_progress_meter(remote_path, size, |
|
&progress_counter); |
|
else |
|
printf("Fetching %s to %s\n", remote_path, local_path); |
|
} |
|
|
|
while (num_req > 0 || max_req > 0) { |
while (num_req > 0 || max_req > 0) { |
char *data; |
char *data; |
|
|
offset = 0; |
offset = 0; |
if (showprogress) |
if (showprogress) |
start_progress_meter(local_path, sb.st_size, &offset); |
start_progress_meter(local_path, sb.st_size, &offset); |
else |
|
printf("Uploading %s to %s\n", local_path, remote_path); |
|
|
|
for (;;) { |
for (;;) { |
int len; |
int len; |