]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix a couple of possible divide-by-zero conditions in statistics
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Jul 2012 03:12:11 +0000 (20:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 1 Jul 2012 03:12:11 +0000 (20:12 -0700)
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>

No differences found