mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
f46b6f6ee2
commit
feb3d6e476
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue