version 1.11, 1999/10/05 10:58:37 |
version 1.12, 1999/10/05 12:17:05 |
|
|
continue; |
continue; |
} |
} |
|
|
totalbytes = stb.st_size; |
if (showprogress) { |
|
totalbytes = stb.st_size; |
/* kick-start the progress meter */ |
|
if(showprogress) |
|
progressmeter(-1); |
progressmeter(-1); |
|
} |
|
|
/* Keep writing after an error so that we stay sync'd up. */ |
/* Keep writing after an error so that we stay sync'd up. */ |
for (haderr = i = 0; i < stb.st_size; i += bp->cnt) { |
for (haderr = i = 0; i < stb.st_size; i += bp->cnt) { |
|
|
np = namebuf; |
np = namebuf; |
} else |
} else |
np = targ; |
np = targ; |
|
curfile = cp; |
exists = stat(np, &stb) == 0; |
exists = stat(np, &stb) == 0; |
if (buf[0] == 'D') { |
if (buf[0] == 'D') { |
int mod_flag = pflag; |
int mod_flag = pflag; |
|
|
totalbytes = size; |
totalbytes = size; |
progressmeter(-1); |
progressmeter(-1); |
} |
} |
|
statbytes = 0; |
for (count = i = 0; i < size; i += 4096) { |
for (count = i = 0; i < size; i += 4096) { |
amt = 4096; |
amt = 4096; |
if (i + amt > size) |
if (i + amt > size) |
|
|
lastsize = 0; |
lastsize = 0; |
} |
} |
(void)gettimeofday(&now, (struct timezone *)0); |
(void)gettimeofday(&now, (struct timezone *)0); |
|
if (totalbytes <= 0) |
|
return; |
cursize = statbytes; |
cursize = statbytes; |
ratio = cursize * 100 / totalbytes; |
ratio = cursize * 100 / totalbytes; |
ratio = MAX(ratio, 0); |
ratio = MAX(ratio, 0); |
|
|
} else if (flag == 1) { |
} else if (flag == 1) { |
alarmtimer(0); |
alarmtimer(0); |
write(fileno(stdout), "\n", 1); |
write(fileno(stdout), "\n", 1); |
|
statbytes = 0; |
} |
} |
} |
} |
|
|