diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-11 18:32:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 18:49:29 +0100 |
commit | fbbdb834f9f3900d56347dc250f5995f173129b0 (patch) | |
tree | f418dac06d4cc584a61f8b605b72f2a86f230695 /parse-xml.c | |
parent | ec042222f0827c7394458a4a0aa4dcbce0c390fb (diff) | |
download | subsurface-fbbdb834f9f3900d56347dc250f5995f173129b0.tar.gz |
Fix average temperature statistics
We generate the average temperature statistics by adding up the
(converted to user unites - not in millikelvin) temperatures and then
dividing by the number of dives we've added up over.
HOWEVER.
We did that summing of the temperatures into an integer variable, even
though the converted temperatures are floating point. So things got
rounded down to integers and the average temperature was just bogus
(although reasonably close).
We could do the summing of the temperatures in millikelvin and only
doing the conversion to the user at the very end. But the smaller patch
is to just change the accumulator to a double value.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
0 files changed, 0 insertions, 0 deletions