summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Jan Schubert <Jan.Schubert@GMX.li>2013-01-24 23:09:53 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-24 15:00:52 -0800
commit50d0391dfbf8f63894abeb288dd4467f06f31b4c (patch)
treea142c06cfddf081aaa806127a3fc26d1fe593eb6 /parse-xml.c
parent67d8891af5ff98870f519a4282918ad2ebd4b3ff (diff)
downloadsubsurface-50d0391dfbf8f63894abeb288dd4467f06f31b4c.tar.gz
Centralization for Kelvin and Standardization to milliKelvin
This centralizes all occurrences of Kelvin to dive.h and standardizes all usages to milliKelvin. [Dirk Hohndel: renamed the constant plus minor white space cleanup] Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 55b37a9c4..8128f25ee 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -348,7 +348,7 @@ static void temperature(char *buffer, void *_temperature)
temperature->mkelvin = val.fp * 1000;
break;
case CELSIUS:
- temperature->mkelvin = (val.fp + 273.15) * 1000 + 0.5;
+ temperature->mkelvin = val.fp * 1000 + ZERO_C_IN_MKELVIN + 0.5;
break;
case FAHRENHEIT:
temperature->mkelvin = (val.fp + 459.67) * 5000/9;