summaryrefslogtreecommitdiffstats
path: root/core/save-html.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-html.c')
-rw-r--r--core/save-html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-html.c b/core/save-html.c
index be9b3a0f8..6a50868ec 100644
--- a/core/save-html.c
+++ b/core/save-html.c
@@ -175,7 +175,7 @@ void put_HTML_samples(struct membuffer *b, struct dive *dive)
char *separator = "\"samples\":[";
for (i = 0; i < dive->dc.samples; i++) {
- put_format(b, "%s[%d,%d,%d,%d]", separator, s->time.seconds, s->depth.mm, s->cylinderpressure.mbar, s->temperature.mkelvin);
+ put_format(b, "%s[%d,%d,%d,%d]", separator, s->time.seconds, s->depth.mm, s->pressure[0].mbar, s->temperature.mkelvin);
separator = ", ";
s++;
}