diff options
Diffstat (limited to 'divelist.c')
-rw-r--r-- | divelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c index 85fb535ed..143f4d43c 100644 --- a/divelist.c +++ b/divelist.c @@ -749,8 +749,8 @@ static int calculate_sac(struct dive *dive) } } } - /* Mean pressure in bar (SAC calculations are in bar*l/min) */ - pressure = depth_to_mbar(dc->meandepth.mm, dive) / 1000.0; + /* Mean pressure in ATM (SAC calculations are in atm*l/min) */ + pressure = (double) depth_to_mbar(dc->meandepth.mm, dive) / SURFACE_PRESSURE; sac = airuse / pressure * 60 / duration; /* milliliters per minute.. */ |