This is the official upstream of the Subsurface divelog program
Find a file
Linus Torvalds adc7280c02 libdivecomputer does crazy gas mixes too
Did I just say "In comparison, the libdivecomputer output is nice and
sane"?

It turns out that libdivecomputer has been doing some drugs too when it
comes to gas mixes.  Like showing O2 percentages as 255.0% and N2
percentages as -155.0%.

Clearly libdivecomputer uses a 'unsigned char' for oxygen percentage,
and makes "-1" be "undefined".  And then it prints that non-existing mix
out, and in the process does MATH on the damn thing ("100-O2") to
"calculate" the nitrogen percentage.

Christ.

Just make the parser silently ignore the craziness, because printing out
"Strange percentage reading -155.0" a few hundred times just doesn't
make anything any better.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-09-01 13:46:24 -07:00
dives Make the multi-dive files valid XML 2011-08-28 17:24:53 -07:00
.gitignore Add .gitignore file for current state 2011-08-30 18:42:57 -07:00
display.h Make the main display saner 2011-08-31 18:30:42 -07:00
dive.h Start parsing gas mixes 2011-09-01 13:32:52 -07:00
divelist.c Use a gtk table instead of hbox 2011-08-31 11:52:16 -07:00
info.c Add some extended dive info fields 2011-08-31 20:36:51 -07:00
main.c Add some extended dive info fields 2011-08-31 20:36:51 -07:00
Makefile Rename some files to be more appropriate 2011-09-01 10:09:53 -07:00
parse-xml.c libdivecomputer does crazy gas mixes too 2011-09-01 13:46:24 -07:00
profile.c Do something half-way sane (no SIGSEGV) when there are no dives 2011-08-31 16:40:22 -07:00
README Rename some files to be more appropriate 2011-09-01 10:09:53 -07:00
scripts Start archiving the stupid XML files 2011-08-28 16:18:53 -07:00

Half-arsed divelog software in C.

I'm tired of java programs that don't work etc. 

License: GPLv2