version 1.85.2.1, 2002/03/07 17:37:47 |
version 1.85.2.2, 2002/05/17 00:03:24 |
|
|
cursize = need; |
cursize = need; |
} |
} |
(void) snprintf(namebuf, need, "%s%s%s", targ, |
(void) snprintf(namebuf, need, "%s%s%s", targ, |
*targ ? "/" : "", cp); |
strcmp(targ, "/") ? "/" : "", cp); |
np = namebuf; |
np = namebuf; |
} else |
} else |
np = targ; |
np = targ; |
|
|
off_t cursize, abbrevsize; |
off_t cursize, abbrevsize; |
double elapsed; |
double elapsed; |
int ratio, barlength, i, remaining; |
int ratio, barlength, i, remaining; |
char buf[256]; |
char buf[512]; |
|
|
if (flag == -1) { |
if (flag == -1) { |
(void) gettimeofday(&start, (struct timezone *) 0); |
(void) gettimeofday(&start, (struct timezone *) 0); |
|
|
i = barlength * ratio / 100; |
i = barlength * ratio / 100; |
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
"|%.*s%*s|", i, |
"|%.*s%*s|", i, |
"***************************************" |
"*******************************************************" |
"***************************************" |
"*******************************************************" |
"***************************************" |
"*******************************************************" |
"***************************************", |
"*******************************************************" |
|
"*******************************************************" |
|
"*******************************************************" |
|
"*******************************************************", |
barlength - i, ""); |
barlength - i, ""); |
} |
} |
i = 0; |
i = 0; |