summaryrefslogtreecommitdiffstats
path: root/core/units.h
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-02-18 21:55:57 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-24 11:45:17 -0800
commit95a23cf4701d4918f866cb5ef1c25a5b2b380096 (patch)
treed4735ee6e8fe357483f88cab290e1749ad303656 /core/units.h
parent928e7ed8694e49efdabe3502eef32c4519bf6b0c (diff)
downloadsubsurface-95a23cf4701d4918f866cb5ef1c25a5b2b380096.tar.gz
Use temperature_t for temperatures in struct stats_t
Use struct temperature_t for temperatures in struct stats_t and use get_temperature_string() when printing these temperatures for statistics and HTML export. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/units.h')
-rw-r--r--core/units.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/units.h b/core/units.h
index 21f646f79..e124826ce 100644
--- a/core/units.h
+++ b/core/units.h
@@ -110,6 +110,11 @@ typedef struct
typedef struct
{
+ uint64_t mkelvin; // up to 18446744073 MdegK (temperatures in K are always positive)
+} temperature_sum_t;
+
+typedef struct
+{
int mliter;
} volume_t;