Hi.
On 2024-01-04 17:38, Mike Kostersitz wrote:
> Thanks Johnny for the quick fix.
>
> I noticed at the end of the FETCH in RPM there is a discrepancy in the
> number of files
>
> 221-Thank you for using this ftp service.
> Data traffic was 14.4 MB in 3 files.
> Total traffic was 14.4 MB in 4 transfers.
> 221 Closing connection.
>
> Should the 3^rd line not be Total traffic was 1.4MB in 3 transfers?
Actually not. Because there is an MGET to fetch the files, and the MGET
itself will request a transfer of a list of files matching the pattern,
so there is an internal extra transfer in this case.
Basically, LIST is a command that cause a transfer, but it's not a file.
Same with DIR. And the data in that transfer is also counted towards the
total traffic number, which means that sometimes the two numbers will
also differ. But the difference is so small in relation to the size of
the total amount transferred in this case that this small difference
becomes the same after rounding.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol