]> git.tdb.fi Git - ext/subsurface.git/commit
Fix broken average SAC calculation
authorMiika Turkia <miika.turkia@gmail.com>
Fri, 30 Mar 2012 05:10:05 +0000 (08:10 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Mar 2012 05:37:32 +0000 (22:37 -0700)
commit9fad1cb50f5976767c06aefe6d2b4d919d9a9634
tree837187569aeec91ff1e3341c273bd1501df85423
parentf69be7b571def1ae35ff7e96bdbac0de94df50fc
Fix broken average SAC calculation

old_sac_time was always 0 when calculating average air consumption.
Thus the results were incorrect.  Move the counter to stats_t structure
as suggested by Linus.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
statistics.c