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;
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");
}
}