mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix up temperature conversion
Oops. No, the water temperature wasn't really 500 degC. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
f46e9f571e
commit
716a680920
1 changed files with 3 additions and 1 deletions
4
parse.c
4
parse.c
|
@ -90,7 +90,9 @@ static int to_feet(depth_t depth)
|
||||||
|
|
||||||
static int to_C(temperature_t temp)
|
static int to_C(temperature_t temp)
|
||||||
{
|
{
|
||||||
return (temp.mkelvin + 272150) / 1000;
|
if (!temp.mkelvin)
|
||||||
|
return 0;
|
||||||
|
return (temp.mkelvin - 273150) / 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int to_PSI(pressure_t pressure)
|
static int to_PSI(pressure_t pressure)
|
||||||
|
|
Loading…
Reference in a new issue