diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-26 00:44:40 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-30 07:56:35 -0700 |
commit | f139eff59005eee151d1d209044b6e28d357d6a1 (patch) | |
tree | 49717ad9a3d2c8e028af6a09a3a34ca171c11816 /save-html.c | |
parent | 60049941ba9cfd80d6b11ce84ba0b8dd165b2b38 (diff) | |
download | subsurface-f139eff59005eee151d1d209044b6e28d357d6a1.tar.gz |
HTML: Add temperature and pressure curves to the JSON data.
Add more dive sample details to the JSON data.
This is not so optimized some zero values can be ignored.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-html.c')
-rw-r--r-- | save-html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/save-html.c b/save-html.c index bad1ef41c..451a3dab9 100644 --- a/save-html.c +++ b/save-html.c @@ -64,7 +64,7 @@ void put_HTML_samples(struct membuffer *b, struct dive *dive) put_string(b, "\"samples\":\["); struct sample *s = dive->dc.sample; for (i = 0; i < dive->dc.samples; i++) { - put_format(b, "[%d,%d],", s->time.seconds, s->depth.mm); + put_format(b, "[%d,%d,%d,%d],", s->time.seconds, s->depth.mm, s->cylinderpressure.mbar, s->temperature.mkelvin); s++; } put_string(b, "],"); |