mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 14:10:19 +00:00
Convert cylinder volume to metric
This is a rough conversion from cuft to liters. Should be close enough when we don't have working pressure to do the real calculation. (As far as I know, this is the case with UDCF.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
006e00ebc4
commit
b0eca5cb32
1 changed files with 8 additions and 1 deletions
|
@ -85,7 +85,14 @@
|
|||
<xsl:value-of select="MIXNAME|mixname"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="size">
|
||||
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$units = 'Imperial'">
|
||||
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume div 7, ' l')"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="concat(TANK/TANKVOLUME|tank/tankvolume, ' l')"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="start">
|
||||
<xsl:call-template name="pressureConvert">
|
||||
|
|
Loading…
Reference in a new issue