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
@ -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…
x
Reference in New Issue
Block a user