diff options
Diffstat (limited to 'xslt/divelogs-export.xslt')
-rw-r--r-- | xslt/divelogs-export.xslt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 7ae342356..8a0b792bf 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -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"> |