diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-11-02 13:30:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-11-02 13:30:49 -0700 |
commit | b9179aabd5429892ac5853b5f5fe993a007bd3ad (patch) | |
tree | 8a8310d1622bad05f04e61b3e32b64fd04b102a6 | |
parent | ba6c57083177178c2c5bfda832bc2afe03cb249f (diff) | |
download | subsurface-b9179aabd5429892ac5853b5f5fe993a007bd3ad.tar.gz |
Fix typo that broke min SAC calculation
Actually more of a cut'n'paste-o
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | statistics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/statistics.c b/statistics.c index 56b04f283..351f2d150 100644 --- a/statistics.c +++ b/statistics.c @@ -83,7 +83,7 @@ static void process_all_dives(struct dive *dive, struct dive **prev_dive) dp->duration.seconds * dp->sac) / sac_time ; if (dp->sac > info_stat.max_sac.mliter) info_stat.max_sac.mliter = dp->sac; - if (info_stat.min_sac.mliter == 0 || dp->sac < info_stat.max_sac.mliter) + if (info_stat.min_sac.mliter == 0 || dp->sac < info_stat.min_sac.mliter) info_stat.min_sac.mliter = dp->sac; } } |