diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-30 20:12:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-06-30 20:12:11 -0700 |
commit | 4033625567eafbb2c3c69da9189a0b0c87b74abc (patch) | |
tree | 6f7c5a4d54d8da9c839dda0dd8a81e11d801669b /uemis.h | |
parent | 03174992a8617c9fa3428583713c2e3e12d293a7 (diff) | |
download | subsurface-4033625567eafbb2c3c69da9189a0b0c87b74abc.tar.gz |
Fix a couple of possible divide-by-zero conditions in statistics
Several people reported the average time problem, but there's another
one lurking there too: if the dive duration is zero, you get bogus
average depth information too (but because that one was a floating point
divide, and by default they are unsignalling on x86, it didn't crash, it
just resulted in bogus results).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'uemis.h')
0 files changed, 0 insertions, 0 deletions