Fix new CNS calculation - remove error with factor of 10

Fix a typo in the new CNS calculation which introduced a error of
factor 10.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2019-08-28 17:53:28 +02:00 committed by Robert C. Helling
parent b3fd824d18
commit 193c456f06

View file

@ -207,7 +207,7 @@ static double calculate_cns_dive(const struct dive *dive)
// This formula is the result of fitting two lines to the Log of the NOAA CNS table
rate = po2i <= 1500 ? exp(-11.7853 + 0.00193873 * po2i) : exp(-23.6349 + 0.00980829 * po2i);
cns += (double) t * rate * 1000.0;
cns += (double) t * rate * 100.0;
}
return cns;
}