summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index 4f42e48d6..4e81f8a70 100644
--- a/dive.c
+++ b/dive.c
@@ -188,6 +188,17 @@ double get_volume_units(unsigned int ml, int *frac, const char **units)
return vol;
}
+int units_to_sac(int volume)
+{
+ if(get_units()->volume == CUFT)
+ if (volume < 10)
+ return cuft_to_l(volume) * 100;
+ else
+ return cuft_to_l(volume) * 10;
+ else
+ return volume * 1000;
+}
+
unsigned int units_to_depth(double depth)
{
if (get_units()->length == METERS)