summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-20 15:55:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-20 15:55:51 -0700
commiteb07faef00c98ddcca3d0035d23661a3c4f30448 (patch)
treee51017e7939e1457447ae758f5784a0a7ce72bff /profile-widget
parente0ac1c9a26c6f82a42dea3d25bd0c8bd2a68ceb6 (diff)
downloadsubsurface-eb07faef00c98ddcca3d0035d23661a3c4f30448.tar.gz
Only do 9 minute interval for min/max/avg
We don't use 3 and 6 minute values anywhere, so why calculate them. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/diveprofileitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/profile-widget/diveprofileitem.cpp b/profile-widget/diveprofileitem.cpp
index 9ea90ea2f..6eb678b3b 100644
--- a/profile-widget/diveprofileitem.cpp
+++ b/profile-widget/diveprofileitem.cpp
@@ -227,9 +227,9 @@ void DiveProfileItem::modelDataChanged(const QModelIndex &topLeft, const QModelI
for (int i = 0, count = dataModel->rowCount(); i < count; i++) {
struct plot_data *pd = dataModel->data().entry;
struct plot_data *entry = pd + i;
- // "min/max[2]" are the 9-minute window min/max indices
- struct plot_data *min_entry = pd + entry->min[2];
- struct plot_data *max_entry = pd + entry->max[2];
+ // "min/max" are the 9-minute window min/max indices
+ struct plot_data *min_entry = pd + entry->min;
+ struct plot_data *max_entry = pd + entry->max;
if (entry->depth < 2000)
continue;