Return to scp.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.20, 1999/11/24 19:53:50 | version 1.21, 1999/11/24 20:26:35 | ||
---|---|---|---|
|
|
||
(void) gettimeofday(&now, (struct timezone *) 0); | (void) gettimeofday(&now, (struct timezone *) 0); | ||
cursize = statbytes; | cursize = statbytes; | ||
if (totalbytes != 0) { | if (totalbytes != 0) { | ||
ratio = cursize * 100 / totalbytes; | ratio = 100.0 * cursize / totalbytes; | ||
ratio = MAX(ratio, 0); | ratio = MAX(ratio, 0); | ||
ratio = MIN(ratio, 100); | ratio = MIN(ratio, 100); | ||
} else | } else |