diff options
author | ken <ken@FreeBSD.org> | 2013-04-11 21:18:04 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2013-04-11 21:18:04 +0000 |
commit | 8737a976bf36161f7625bac222f828b06aa9cc4d (patch) | |
tree | 585693d76c32fc39b397195b5dfbd134f9404ad6 /libexec | |
parent | fb2d6a2d063a7747ddf625ecb300fb5f360b90c8 (diff) | |
download | FreeBSD-src-8737a976bf36161f7625bac222f828b06aa9cc4d.zip FreeBSD-src-8737a976bf36161f7625bac222f828b06aa9cc4d.tar.gz |
Fix bugs in the elapsed time calculation in ctlstat_standard()
pointed out by bde:
- Casting to long double isn't needed.
- The division isn't needed, multiplication can be used.
"When 1 nanosecond is in a floating point literal, the whole
expression is automatically promoted correctly."
- non-KNF indentation (1 tab) for the newly split line
- different non-KNF indentation (5 spaces) for the previously split
line
- exessive parentheses around the division operation
- bogus blank line which splits up the etime initialization
- general verboseness from the above.
Submitted by: bde
MFC after: 3 days
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions