X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=statistics.c;h=d714220430aa0febabc074cfa2b76d62ef414b26;hb=93d07f631aec470fb9f920f66ccb03ce699942b5;hp=80cab2b02b82c4096750db31ab77438b102ca02b;hpb=0e64a22c142bbb2415b010968194948c592b1542;p=ext%2Fsubsurface.git diff --git a/statistics.c b/statistics.c index 80cab2b..d714220 100644 --- a/statistics.c +++ b/statistics.c @@ -140,7 +140,7 @@ void show_dive_stats(struct dive *dive) set_label(info_stat_w.max_depth, "%.*f %s", decimals, value, unit); value = get_depth_units(dive->meandepth.mm, &decimals, &unit); set_label(info_stat_w.avg_depth, "%.*f %s", decimals, value, unit); - if (dive->watertemp.mkelvin > 200) { + if (dive->watertemp.mkelvin) { value = get_temp_units(dive->watertemp.mkelvin, &unit); set_label(info_stat_w.water_temp, "%.1f %s", value, unit); } else @@ -178,8 +178,7 @@ void show_dive_stats(struct dive *dive) gas_used += cyl->type.size.mliter / 1000.0 * (cyl->start.mbar - cyl->end.mbar); } - if (offset) - set_label(info_stat_w.o2he, buf); + set_label(info_stat_w.o2he, buf); if (gas_used) { value = get_volume_units(gas_used, &decimals, &unit); set_label(info_stat_w.gas_used, "%.*f %s", decimals, value, unit);