From: Linus Torvalds Date: Sun, 1 Jul 2012 03:12:11 +0000 (-0700) Subject: Fix a couple of possible divide-by-zero conditions in statistics X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=sidebyside;h=4033625567eafbb2c3c69da9189a0b0c87b74abc;hp=4033625567eafbb2c3c69da9189a0b0c87b74abc;p=ext%2Fsubsurface.git 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 ---