]> git.tdb.fi Git - ext/subsurface.git/blobdiff - save-xml.c
Fix up small details in input/output
[ext/subsurface.git] / save-xml.c
index 64254b45ec1f907483a71fced4f56afb92646f6f..29f22e6dd5cd0cf3d47aba59b357cfeb2e00e723 100644 (file)
@@ -26,6 +26,7 @@ static void save_overview(FILE *f, struct dive *dive)
 {
        fprintf(f, "  <maxdepth>%u.%03u m</maxdepth>\n", FRACTION(dive->maxdepth.mm, 1000));
        show_temperature(f, dive->airtemp, "  <airtemp>", " C</airtemp>\n");
+       show_temperature(f, dive->watertemp, "  <watertemp>", " C</airtemp>\n");
 }
 
 static void save_gasmix(FILE *f, struct dive *dive)
@@ -53,7 +54,7 @@ static void save_sample(FILE *f, struct sample *sample)
                FRACTION(sample->depth.mm, 1000));
        show_temperature(f, sample->temperature, " temp='", " C'");
        if (sample->tankpressure.mbar) {
-               fprintf(f, " tankpressure='%u.%03u bar'",
+               fprintf(f, " pressure='%u.%03u bar'",
                        FRACTION(sample->tankpressure.mbar, 1000));
        }
        fprintf(f, "></sample>\n");