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:
Miika Turkia 2015-05-01 09:11:00 -06:00 committed by Dirk Hohndel
parent f29fa78a8d
commit 1ad253df9d

View file

@ -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">