Explicitly check for 100% completion to avoid potential floating point
authordtucker <dtucker@openbsd.org>
Thu, 30 Jun 2016 05:17:05 +0000 (05:17 +0000)
committerdtucker <dtucker@openbsd.org>
Thu, 30 Jun 2016 05:17:05 +0000 (05:17 +0000)
commit3de3d7ee83bdfd3867d44aaa5e3f94b6e69c9225
tree59b6b5f2a27373641ce0bf2cfd66963bc125ad4a
parenta0dab2666f4d7fd70d35a6c5e8b229b36f28cce8
Explicitly check for 100% completion to avoid potential floating point
rounding error, which could cause progressmeter to report 99% on completion.
While there invert the test so the 100% case is clearer.  with & ok djm@
usr.bin/ssh/progressmeter.c