summaryrefslogtreecommitdiffstats
path: root/dive.c
AgeCommit message (Collapse)Author
2011-09-05Report errors when opening filesGravatar Nathan Samson
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
2011-09-05Sanitize and fix cylinder pressure overviewGravatar Linus Torvalds
Doing per-dive cylinder start/end pressures is insane, when we can have up to eight cylinders. The cylinder start/end pressure cannot be per dive, it needs to be per cylinder. This makes the save format cleaner too, we have all the cylinder data in just one place. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-04Clean up 'fixup_dive()' a bitGravatar Linus Torvalds
We don't want to override potentially more exact values for water temperature etc either. The sample save interval may be longer than some internally kept state of key per-dive values like that. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-04Generate date string for the dive list dynamicallyGravatar Linus Torvalds
.. and sort based on the 'time_t' value itself. This allows us to use a more compact date format that doesn't need to sort alphabetically, because sorting by date is always based on the date value. So we can use just a two-digit year, and skip the seconds, to keep the column narrow, while still sorting correctly. Also, "Depth" is a nice header string, but it is wider than the column itself, which makes the whole column wider than necessary. So put the units in the header instead of in the string, keeping things narrow. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-04Merge branch 'compiler-warning' of https://github.com/nathansamson/diveclogGravatar Linus Torvalds
* 'compiler-warning' of https://github.com/nathansamson/diveclog: Removed the unused startemp and enttemp calculations. This fixes a compiler warning too. Fix up trivial conflict in dive.c due to the temperature simplification (commit 9961c7f89ce6: "Remove redundant temperature readings").
2011-09-04Remove redundant temperature readingsGravatar Linus Torvalds
I'm aiming to really differentiate in dive log software by making my XML export files be *clean*, dammit. That means that we don't have random names, we don't have crazy random units, and we don't have redundant information. So when the temperature doesn't change, just don't report it. That's already what "no sample" means, just clean things up. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-04Removed the unused startemp and enttemp calculations. This fixes a compiler ↵Gravatar Nathan Samson
warning too. Signed-off-by: Nathan Samson <nathansamson@gmail.com>
2011-09-03Merge https://github.com/mrjbq7/diveclogGravatar Linus Torvalds
* https://github.com/mrjbq7/diveclog: dive.c: Fix spelling.
2011-09-03Do better cylinder information managementGravatar Linus Torvalds
Instead of just tracking gasmix, track the size and workng pressure of the cylinder too. And use "cylinder" instead of "tank" throughout. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-03dive.c: Fix spelling.Gravatar John Benediktsson
2011-09-03Only update mean/max depths with computed ones if they are way offGravatar Linus Torvalds
The computer may track "real" max depth more closely than it tracks samples. So we trust the non-computed mean/max depths more than the computed ones. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-03Add various dive fixups, and show pressure (if any) in the plotGravatar Linus Torvalds
Now the dive profile plot *really* needs some units. The pressure is just a random line otherwise. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>