mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Use dynamic sample interval on divelogs.de export
Rounding always up should give us sensible sample interval as EON Steel adds extra samples. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f29fa78a8d
commit
1ad253df9d
1 changed files with 4 additions and 1 deletions
|
@ -222,7 +222,10 @@
|
|||
<SAMPLEINTERVAL>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$special = 1">
|
||||
<xsl:text>10</xsl:text>
|
||||
<xsl:variable name="samples">
|
||||
<xsl:value-of select="count(//sample/@time)"/>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="ceiling($duration div $samples)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="first">
|
||||
|
|
Loading…
Reference in a new issue