mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Small whitespace cleanup
Stumbled across this when Qt Creator re-saved the file. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d577467f97
commit
be64f6f3c0
1 changed files with 11 additions and 11 deletions
|
@ -203,7 +203,7 @@ double calculate_cns_dive(struct dive *dive)
|
||||||
size_t j;
|
size_t j;
|
||||||
struct divecomputer *dc = &dive->dc;
|
struct divecomputer *dc = &dive->dc;
|
||||||
double cns = 0.0;
|
double cns = 0.0;
|
||||||
|
|
||||||
/* Caclulate the CNS for each sample in this dive and sum them */
|
/* Caclulate the CNS for each sample in this dive and sum them */
|
||||||
for (n = 1; n < dc->samples; n++) {
|
for (n = 1; n < dc->samples; n++) {
|
||||||
int t;
|
int t;
|
||||||
|
@ -227,7 +227,7 @@ double calculate_cns_dive(struct dive *dive)
|
||||||
j--;
|
j--;
|
||||||
cns += ((double)t) / ((double)cns_table[j][1]) * 100;
|
cns += ((double)t) / ((double)cns_table[j][1]) * 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
return cns;
|
return cns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -247,9 +247,9 @@ static int calculate_cns(struct dive *dive)
|
||||||
divenr = get_divenr(dive);
|
divenr = get_divenr(dive);
|
||||||
i = divenr >= 0 ? divenr : dive_table.nr;
|
i = divenr >= 0 ? divenr : dive_table.nr;
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
if (i >= 0 && i < dive_table.nr)
|
if (i >= 0 && i < dive_table.nr)
|
||||||
printf("\n\n*** CNS for dive #%d %d\n", i, get_dive(i)->number);
|
printf("\n\n*** CNS for dive #%d %d\n", i, get_dive(i)->number);
|
||||||
else
|
else
|
||||||
printf("\n\n*** CNS for dive #%d\n", i);
|
printf("\n\n*** CNS for dive #%d\n", i);
|
||||||
#endif
|
#endif
|
||||||
/* Look at next dive in dive list table and correct i when needed */
|
/* Look at next dive in dive list table and correct i when needed */
|
||||||
|
@ -282,7 +282,7 @@ static int calculate_cns(struct dive *dive)
|
||||||
* for how far back we need to go */
|
* for how far back we need to go */
|
||||||
if (dive->divetrip && pdive->divetrip != dive->divetrip) {
|
if (dive->divetrip && pdive->divetrip != dive->divetrip) {
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("No - other dive trip\n");
|
printf("No - other dive trip\n");
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -306,7 +306,7 @@ static int calculate_cns(struct dive *dive)
|
||||||
/* again skip dives from different trips */
|
/* again skip dives from different trips */
|
||||||
if (dive->divetrip && dive->divetrip != pdive->divetrip) {
|
if (dive->divetrip && dive->divetrip != pdive->divetrip) {
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("No - other dive trip\n");
|
printf("No - other dive trip\n");
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -329,7 +329,7 @@ static int calculate_cns(struct dive *dive)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* CNS reduced with 90min halftime during surface interval */
|
/* CNS reduced with 90min halftime during surface interval */
|
||||||
if (last_endtime)
|
if (last_endtime)
|
||||||
cns /= pow(2, (pdive->when - last_endtime) / (90.0 * 60.0));
|
cns /= pow(2, (pdive->when - last_endtime) / (90.0 * 60.0));
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("CNS after surface interval: %f\n", cns);
|
printf("CNS after surface interval: %f\n", cns);
|
||||||
|
@ -343,7 +343,7 @@ static int calculate_cns(struct dive *dive)
|
||||||
last_starttime = pdive->when;
|
last_starttime = pdive->when;
|
||||||
last_endtime = dive_endtime(pdive);
|
last_endtime = dive_endtime(pdive);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CNS reduced with 90min halftime during surface interval */
|
/* CNS reduced with 90min halftime during surface interval */
|
||||||
if (last_endtime)
|
if (last_endtime)
|
||||||
cns /= pow(2, (dive->when - last_endtime) / (90.0 * 60.0));
|
cns /= pow(2, (dive->when - last_endtime) / (90.0 * 60.0));
|
||||||
|
@ -517,7 +517,7 @@ int init_decompression(struct deco_state *ds, struct dive *dive)
|
||||||
* for how far back we need to go */
|
* for how far back we need to go */
|
||||||
if (dive->divetrip && pdive->divetrip != dive->divetrip) {
|
if (dive->divetrip && pdive->divetrip != dive->divetrip) {
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("No - other dive trip\n");
|
printf("No - other dive trip\n");
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,7 @@ int init_decompression(struct deco_state *ds, struct dive *dive)
|
||||||
/* again skip dives from different trips */
|
/* again skip dives from different trips */
|
||||||
if (dive->divetrip && dive->divetrip != pdive->divetrip) {
|
if (dive->divetrip && dive->divetrip != pdive->divetrip) {
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("No - other dive trip\n");
|
printf("No - other dive trip\n");
|
||||||
#endif
|
#endif
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -606,7 +606,7 @@ int init_decompression(struct deco_state *ds, struct dive *dive)
|
||||||
/* We don't have had a previous dive at all? */
|
/* We don't have had a previous dive at all? */
|
||||||
if (!deco_init) {
|
if (!deco_init) {
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
printf("Init deco\n");
|
printf("Init deco\n");
|
||||||
#endif
|
#endif
|
||||||
clear_deco(ds, surface_pressure);
|
clear_deco(ds, surface_pressure);
|
||||||
#if DECO_CALC_DEBUG & 2
|
#if DECO_CALC_DEBUG & 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue