summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index b80481ed9..f0583fb6b 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -200,14 +200,14 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
put_temperature(b, sample->temperature, " temp='", " C'");
old->temperature = sample->temperature;
}
- put_pressure(b, sample->cylinderpressure, " pressure='", " bar'");
- put_pressure(b, sample->o2cylinderpressure, " o2pressure='", " bar'");
+ put_pressure(b, sample->pressure[0], " pressure='", " bar'");
+ put_pressure(b, sample->pressure[1], " o2pressure='", " bar'");
/*
* We only show sensor information for samples with pressure, and only if it
* changed from the previous sensor we showed.
*/
- if (sample->cylinderpressure.mbar && sample->sensor != old->sensor) {
+ if (sample->pressure[0].mbar && sample->sensor != old->sensor) {
put_format(b, " sensor='%d'", sample->sensor);
old->sensor = sample->sensor;
}