mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +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
							
								
									4f83bb9236
								
							
						
					
					
						commit
						1559eb590d
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -222,7 +222,10 @@ | ||||||
|     <SAMPLEINTERVAL> |     <SAMPLEINTERVAL> | ||||||
|       <xsl:choose> |       <xsl:choose> | ||||||
|         <xsl:when test="$special = 1"> |         <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:when> | ||||||
|         <xsl:otherwise> |         <xsl:otherwise> | ||||||
|           <xsl:variable name="first"> |           <xsl:variable name="first"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue