summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
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 c709207ee..8bfb7a7a8 100644
--- a/equipment.c
+++ b/equipment.c
@@ -637,13 +637,13 @@ static void fill_cylinder_info(struct cylinder_widget *cylinder, cylinder_t *cyl
end = psi_to_bar(end);
}
- if (pressure && output_units.volume == CUFT) {
+ mbar = pressure * 1000 + 0.5;
+ if (mbar && output_units.volume == CUFT) {
volume = cuft_to_l(volume);
volume /= bar_to_atm(pressure);
}
ml = volume * 1000 + 0.5;
- mbar = pressure * 1000 + 0.5;
/* Ignore obviously crazy He values */
if (o2 + he > 1000)