diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2012-09-10 22:17:28 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-11 07:29:06 -0700 |
commit | ae33b5ef524ceb53da0b8b4fc278d28797adb11d (patch) | |
tree | 8505a220592775a332281796c5cd36e27772b632 /divelist.c | |
parent | 50eac41129b09f989bade45077beab32bb585eb0 (diff) | |
download | subsurface-ae33b5ef524ceb53da0b8b4fc278d28797adb11d.tar.gz |
Display yearly/monthly statistics
Display yearly statistics in a statistics window with option to expand
the viewing on monthly level. The amount of dives along with basic
information like duration, depth, water temperature and air consumption
is displayed in yearly and monthly level. Thus you are able to compare
e.g. development of air consumption or diving activity from year to
year.
Using already existing macro for splitting seconds into minutes:seconds.
Moving repetitive code to a function (couldn't think of the suggested
clever macro, but this should pretty much do the trick).
Now the statistics are updated every time the process_all_dives function
is called. It might make sense to actually verify the structures need to
be re-allocated, but such optimization is currently not implemented.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Combined two commits.
Minor cleanups for white space and boolean values.
Significant changes to use the correct units for volumes vs. depths and to
avoid unneccesary lookups of the model storage based on the tree.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
0 files changed, 0 insertions, 0 deletions