mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
e0ac1c9a26
commit
eb07faef00
4 changed files with 24 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue