From 50d0391dfbf8f63894abeb288dd4467f06f31b4c Mon Sep 17 00:00:00 2001 From: Jan Schubert Date: Thu, 24 Jan 2013 23:09:53 +0100 Subject: 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 Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse-xml.c') 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; -- cgit v1.2.3-70-g09d2