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@gmail.com>
This commit is contained in:
Miika Turkia 2017-05-07 16:27:41 +03:00
parent d851549d9c
commit c832973df5

View file

@ -1065,13 +1065,6 @@ int parse_seabear_log(const char *filename)
if (parse_seabear_csv_file(filename, params, pnr, "csv") < 0) { if (parse_seabear_csv_file(filename, params, pnr, "csv") < 0) {
return -1; return -1;
} }
// Seabear CSV stores NDL and TTS in Minutes, not seconds
struct dive *dive = dive_table.dives[dive_table.nr - 1];
for(int s_nr = 0 ; s_nr < dive->dc.samples ; s_nr++) {
struct sample *sample = dive->dc.sample + s_nr;
sample->ndl.seconds *= 60;
sample->tts.seconds *= 60;
}
return 0; return 0;
} }