summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 21:12:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 21:34:06 -0700
commit485b02937d8ca1f9a9043c89e74a3d2f15d6426b (patch)
treeb589a44458c22dcbdeada5996eaf634cc064723e /equipment.c
parent56980579514f2900e43441b483e435b3e3235266 (diff)
downloadsubsurface-485b02937d8ca1f9a9043c89e74a3d2f15d6426b.tar.gz
Even more places with pressure and volume conversions
Amazing at how many spots we are re-implementing the wheel. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/equipment.c b/equipment.c
index 64a05d5b0..c7a683b89 100644
--- a/equipment.c
+++ b/equipment.c
@@ -360,7 +360,7 @@ static void fill_cylinder_info(struct cylinder_widget *cylinder, cylinder_t *cyl
}
if (pressure && output_units.volume == CUFT) {
- volume = cuft_to_ml(volume);
+ volume = cuft_to_l(volume);
volume /= bar_to_atm(pressure);
}
@@ -464,7 +464,7 @@ static void fill_tank_list(GtkListStore *store)
/* Is it in cuft and psi? */
if (psi) {
double bar = psi_to_bar(psi);
- double airvolume = cuft_to_ml(size);
+ double airvolume = cuft_to_l(size) * 1000.0;
double atm = bar_to_atm(bar);
ml = airvolume / atm + 0.5;