diff options
-rw-r--r-- | profile.c | 1 | ||||
-rw-r--r-- | profile.h | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -597,6 +597,7 @@ struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer * entry->sec = time; entry->depth = depth; + entry->running_sum = (entry - 1)->running_sum + (time - lasttime) * (depth + lastdepth) / 2; entry->stopdepth = sample->stopdepth.mm; entry->stoptime = sample->stoptime.seconds; entry->ndl = sample->ndl.seconds; @@ -39,6 +39,7 @@ struct plot_data { int cns; int smoothed; int sac; + int running_sum; struct gas_pressures pressures; pressure_t o2pressure; // for rebreathers, this is consensus measured po2, or setpoint otherwise. 0 for OC. pressure_t o2sensor[3]; //for rebreathers with up to 3 PO2 sensors |