]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Now that we don't mess up import, we can save the cylinder working pressure
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 10 Sep 2011 22:17:33 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 10 Sep 2011 22:17:33 +0000 (15:17 -0700)
We used to have the heuristic that if we saw a cylinder working
pressure, then the cylinder size would be in cuft.  Which meant that we
couldn't export our working pressures, because it would mess things up
on import.

But working pressure is actually nice to know, if you ever work with
cylinders in imperial units.  So now that the import is fixed, add the
working pressure to the export.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
save-xml.c

index c5d49391b194c71f59d16756ab087a6605dbdac7..c93a828cc54f8fa5b1c29eb28bf7b42762fe034e 100644 (file)
@@ -180,6 +180,7 @@ static void save_cylinder_info(FILE *f, struct dive *dive)
                }
                if (volume)
                        show_milli(f, " size='", volume, " l", "'");
+               show_pressure(f, cylinder->type.workingpressure, " workpressure='", "'");
                if (description)
                        fprintf(f, " description='%s'", description);
                show_pressure(f, cylinder->start, " start='", "'");