diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-03 20:50:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-03 20:50:11 -0700 |
commit | 6fd86ab6b7784e11f67c879b51c37c6e0011416f (patch) | |
tree | 49531c78ba5840bbf7abf7b9e548c0c6bc315bb6 /save-xml.c | |
parent | 3a04342607a9fa7255be60ee5d4b8a816ecb7b0a (diff) | |
download | subsurface-6fd86ab6b7784e11f67c879b51c37c6e0011416f.tar.gz |
Don't bother saving n2 percentage
It's all calculated anyway, and for the same reason we don't bother even
parsing it at load time, we really shouldn't bother saving it either.
The only thing you can do with that value is "check if the percentages
add up to 100%", and so what?
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c index 309f7cc08..9e3640cad 100644 --- a/save-xml.c +++ b/save-xml.c @@ -136,11 +136,9 @@ static void save_cylinder_info(FILE *f, struct dive *dive) return; fprintf(f, " <cylinder"); if (o2) { - int n2 = 1000 - o2 - he; fprintf(f, " o2='%u.%u%%'", FRACTION(o2, 10)); if (he) fprintf(f, " he='%u.%u%%'", FRACTION(he, 10)); - fprintf(f, " n2='%u.%u%%'", FRACTION(n2, 10)); } if (volume) { fprintf(f, " size='%u.%03u l'", FRACTION(volume, 1000)); |