[PATCH] Export cylinder information to divelogs.de also if pressure dropped
Miika Turkia
miika.turkia at gmail.com
Thu Jan 29 09:11:48 PST 2015
This will export the cylinder information to divelogs.de also if there
is a pressure drop of at least 5 bars. (Previously only a gas switch to
the gas triggered the export of that particular cylinder.)
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
xslt/divelogs-export.xslt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt
index 79f72b5..5752a44 100644
--- a/xslt/divelogs-export.xslt
+++ b/xslt/divelogs-export.xslt
@@ -119,7 +119,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas]">
+ <xsl:if test="following-sibling::divecomputer/event[@name='gaschange' and @value=$gas] or substring-before(@start, ' ') - 5 > substring-before(@end, ' ')">
<xsl:variable name="cur_cyl">
<xsl:value-of select="position()"/>
</xsl:variable>
--
1.9.1
More information about the subsurface
mailing list