summaryrefslogtreecommitdiffstats
path: root/save-git.c
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-07-22 17:23:20 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-30 07:43:16 -0700
commita09cfb8e98dea0fdc5133d08690262cd7e9260e9 (patch)
tree69f3e78c109efc6262860069aaee2aef0fcbc166 /save-git.c
parent25f3038d40edd7b88e06b2a0643878b30264f1b6 (diff)
downloadsubsurface-a09cfb8e98dea0fdc5133d08690262cd7e9260e9.tar.gz
RBT - Add load/save in git storage support
Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'save-git.c')
-rw-r--r--save-git.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/save-git.c b/save-git.c
index c47d89980..559666d0e 100644
--- a/save-git.c
+++ b/save-git.c
@@ -303,6 +303,9 @@ static void save_sample(struct membuffer *b, struct sample *sample, struct sampl
old->cns = sample->cns;
}
+ if (sample->rbt.seconds)
+ put_format(b, " rbt=%u:%02u", FRACTION(sample->rbt.seconds, 60));
+
if (sample->o2sensor[0].mbar != old->o2sensor[0].mbar) {
put_milli(b, " sensor1=", sample->o2sensor[0].mbar, "bar");
old->o2sensor[0] = sample->o2sensor[0];