diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-07-26 16:29:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 10:02:58 -0700 |
commit | bfc919b1c3d9d39f6296179d8a6a1fbbd9b22782 (patch) | |
tree | 47c291a3db159553558f34b480181f79ffa8a2c8 /save-html.c | |
parent | 0416a09a1e3d2a2fe3f97dbe098520bb24cc2a8d (diff) | |
download | subsurface-bfc919b1c3d9d39f6296179d8a6a1fbbd9b22782.tar.gz |
HTML: Fix event value fields.
- The gas event values can contain o2 and he mix in gas change events.
- Give a '-' value for events that don't have any sensible values.
- Show event value if event type is heading or gaschange.
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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/save-html.c b/save-html.c index 75f7542eb..f777de05d 100644 --- a/save-html.c +++ b/save-html.c @@ -37,6 +37,7 @@ void put_HTML_bookmarks(struct membuffer *b, struct dive *dive) while (ev) { put_format(b, "{\"name\":\"%s\",", ev->name); put_format(b, "\"value\":\"%d\",", ev->value); + put_format(b, "\"type\":\"%d\",", ev->type); put_format(b, "\"time\":\"%d\",},", ev->time.seconds); ev = ev->next; } |