]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix typo that broke min SAC calculation
authorDirk Hohndel <dirk@hohndel.org>
Wed, 2 Nov 2011 20:30:49 +0000 (13:30 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Wed, 2 Nov 2011 20:30:49 +0000 (13:30 -0700)
Actually more of a cut'n'paste-o

Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
statistics.c

index 56b04f283de79a9f38b29dd27d2171544a1f4e54..351f2d1507062024f37ea6cd4dd737291841b524 100644 (file)
@@ -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;
                }
        }