aboutsummaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2015-03-09 22:33:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-11 11:02:16 -0700
commitd922dbbd99d1da3b86bff5371dd10d32aec2ac61 (patch)
tree0352a1c86bbaf311840bee3883d0f500ed885618 /save-html.c
parent1e81dff946b8dd4e0c9526329cf095b55a9c7ccc (diff)
downloadsubsurface-d922dbbd99d1da3b86bff5371dd10d32aec2ac61.tar.gz
HTML: fix the value of cylinder gas in trimix dives
Value of He must be showed in trimix dives, also fixes the format of the dive events table. Gas change should be something like O2: 50 - He 0 Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/save-html.c b/save-html.c
index 13d2fd559..f9f1cf0d1 100644
--- a/save-html.c
+++ b/save-html.c
@@ -140,10 +140,12 @@ static void put_cylinder_HTML(struct membuffer *b, struct dive *dive)
}
if (cylinder->gasmix.o2.permille) {
- put_format(b, "\"O2\":\"%u.%u%%\"", FRACTION(cylinder->gasmix.o2.permille, 10));
+ put_format(b, "\"O2\":\"%u.%u%%\",", FRACTION(cylinder->gasmix.o2.permille, 10));
+ put_format(b, "\"He\":\"%u.%u%%\"", FRACTION(cylinder->gasmix.he.permille, 10));
} else {
write_attribute(b, "O2", "Air", "");
}
+
put_string(b, "}");
}