X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=c33cbb0ddaae0def1daac898109efa5c595531f6;hb=ecff0922d43edeb361769755d49e84d1b02caa90;hp=5c05723b71e1ebf5df39a0c9f977d6d0f6ccb6e5;hpb=9961c7f89ce6353609383b16b9fbf3a30e4d8604;p=ext%2Fsubsurface.git diff --git a/save-xml.c b/save-xml.c index 5c05723..c33cbb0 100644 --- a/save-xml.c +++ b/save-xml.c @@ -127,7 +127,6 @@ static void save_cylinder_info(FILE *f, struct dive *dive) for (i = 0; i < MAX_CYLINDERS; i++) { cylinder_t *cylinder = dive->cylinder+i; int volume = cylinder->type.size.mliter; - int pressure = cylinder->type.workingpressure.mbar; int o2 = cylinder->gasmix.o2.permille; int he = cylinder->gasmix.he.permille; @@ -140,11 +139,8 @@ static void save_cylinder_info(FILE *f, struct dive *dive) if (he) fprintf(f, " he='%u.%u%%'", FRACTION(he, 10)); } - if (volume) { + if (volume) fprintf(f, " size='%u.%03u l'", FRACTION(volume, 1000)); - if (pressure) - fprintf(f, " workpressure='%u.%03u bar'", FRACTION(pressure, 1000)); - } fprintf(f, " />\n"); } }