From ecdb4cd52230faca2b3637ca4f2a0c5caa36a7ce Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Wed, 27 Feb 2013 07:01:22 +0200 Subject: Fix MacDive import to convert Imperial temperature MacDive import needs to convert temperatures to Celcius. However, it seems that MacDive reports no reading as 32F (and probably 0C when using Metric). There is no way of knowing whether we have no reading or the temperature is actually zero, so we use the given temperature currently as 0C is a valid temperature... Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- xslt/MacDive.xslt | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) (limited to 'xslt') diff --git a/xslt/MacDive.xslt b/xslt/MacDive.xslt index c7c406521..35a5a783d 100644 --- a/xslt/MacDive.xslt +++ b/xslt/MacDive.xslt @@ -208,22 +208,34 @@ - + + + + - + + + + - + + + + - + + + + @@ -288,7 +300,10 @@ - + + + + @@ -378,6 +393,22 @@ + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2