summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Gehad elrobey <gehadelrobey@gmail.com>2014-07-19 05:09:48 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-25 07:14:32 -0700
commitfeb3d6e4761badef62a288f8f4858ffd958b38cc (patch)
treeb0feaed92f086e2a29d35d25e62ef4eb28d78642 /save-html.c
parentf46b6f6ee2b2cd4a9853391d0d28104ea377f6ce (diff)
downloadsubsurface-feb3d6e4761badef62a288f8f4858ffd958b38cc.tar.gz
HTML: add event value to the detailed view.
Event value is important in case of gas change and heading events. The value information show: mix and direction. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/save-html.c b/save-html.c
index 710569dee..75f7542eb 100644
--- a/save-html.c
+++ b/save-html.c
@@ -36,6 +36,7 @@ void put_HTML_bookmarks(struct membuffer *b, struct dive *dive)
put_string(b, "\"events\":[");
while (ev) {
put_format(b, "{\"name\":\"%s\",", ev->name);
+ put_format(b, "\"value\":\"%d\",", ev->value);
put_format(b, "\"time\":\"%d\",},", ev->time.seconds);
ev = ev->next;
}