Now that we don't mess up import, we can save the cylinder working pressure

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>
This commit is contained in:
Linus Torvalds 2011-09-10 15:17:33 -07:00
parent ed4b739f5f
commit b17c7f0709

View 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='", "'");