]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If the compressed data is larger than the uncompressed,
authorTim Kientzle <kientzle@FreeBSD.org>
Mon, 14 Jun 2010 02:56:45 +0000 (02:56 +0000)
committerTim Kientzle <kientzle@FreeBSD.org>
Mon, 14 Jun 2010 02:56:45 +0000 (02:56 +0000)
commit0c1bca0fd25543dc652ea09f6968274d1c9b80c7
tree08da7b35efab8db241147ce1619b030aba452d0d
parent2ca090b30860fe0755ba3e5d9de623e1c3cf99fd
If the compressed data is larger than the uncompressed,
report the compression ratio as 0% instead of displaying
nonsense triggered by numeric overflow.  This is common
when dealing with uncompressed files when the I/O blocking
causes there to be small transient differences in the
accounting.

Thanks to:  Boris Samorodov
usr.bin/tar/read.c
usr.bin/tar/write.c