summaryrefslogtreecommitdiffstats
path: root/share/termcap
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-04-30 07:27:23 +0000
committerbde <bde@FreeBSD.org>2006-04-30 07:27:23 +0000
commit601ee9993aa18a97c65a6b58b7be9501198c5fca (patch)
tree11f57bb9110980574e008b41476e32950f62b2bb /share/termcap
parente3a87fd595ba1ed181fbc8ecbbcf6145918ace68 (diff)
downloadFreeBSD-src-601ee9993aa18a97c65a6b58b7be9501198c5fca.zip
FreeBSD-src-601ee9993aa18a97c65a6b58b7be9501198c5fca.tar.gz
Fix "slow (on-the-fly) zero fills percentage (`%slo-z')" some more. The
value printed is actually the optimized (i.e., the non-slow, not-on-the-fly zero fills percentage) except in overflow cases. Describe it as %ozfod in the display. Move the field descriptor 1 to the left so that there is space for 5 characters after the % sign (this leaves no space between the number and the descriptor but the % character serves well as a separator). Fixed integer overflow at z.ozfod = UINT_MAX/100 in the calculation of %ozfod. This value can be reached just a few hours or minutes after booting, so %ozfod was usually garbage in boot mode. Now %ozfod is correct in boot mode for a few days or hours. Print a non-dummy %ozfod when the division for it isn't division by 0 instead of when the result will be less than 100%. A result of 100% may be correct, though a result of more than 100% indicates overflow of one or both counters.
Diffstat (limited to 'share/termcap')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud