Changeset c832973 in subsurface


Ignore:
Timestamp:
May 7, 2017, 6:27:41 AM (5 months ago)
Author:
Miika Turkia <miika.turkia@…>
Branches:
master
Children:
0829d60
Parents:
d851549
Message:

Fix NDL and TTS for Seabear import

Apparently the refactoring changed these values to be returned directly
in seconds. Not sure why, but luckily we have test cases that discovered
the change.

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/file.c

    r0dfa448 rc832973  
    10661066                return -1;
    10671067        }
    1068         // Seabear CSV stores NDL and TTS in Minutes, not seconds
    1069         struct dive *dive = dive_table.dives[dive_table.nr - 1];
    1070         for(int s_nr = 0 ; s_nr < dive->dc.samples ; s_nr++) {
    1071                 struct sample *sample = dive->dc.sample + s_nr;
    1072                 sample->ndl.seconds *= 60;
    1073                 sample->tts.seconds *= 60;
    1074         }
    10751068
    10761069        return 0;
Note: See TracChangeset for help on using the changeset viewer.