X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=save-xml.c;h=64d65471132d3340756e1ff274c9ed807fe848c1;hb=85921592b052e2be867f049306abd28e69c978ae;hp=5c05723b71e1ebf5df39a0c9f977d6d0f6ccb6e5;hpb=a57668127eb0e00bc467ae0fc487592e95c17227;p=ext%2Fsubsurface.git diff --git a/save-xml.c b/save-xml.c index 5c05723..64d6547 100644 --- a/save-xml.c +++ b/save-xml.c @@ -127,7 +127,7 @@ 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; + const char *description = cylinder->type.description; int o2 = cylinder->gasmix.o2.permille; int he = cylinder->gasmix.he.permille; @@ -140,11 +140,10 @@ 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)); - } + if (description) + fprintf(f, " description='%s'", description); fprintf(f, " />\n"); } }