From: Dirk Hohndel Date: Wed, 2 Nov 2011 20:30:49 +0000 (-0700) Subject: Fix typo that broke min SAC calculation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=b9179aabd5429892ac5853b5f5fe993a007bd3ad;p=ext%2Fsubsurface.git Fix typo that broke min SAC calculation Actually more of a cut'n'paste-o Reported-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- diff --git a/statistics.c b/statistics.c index 56b04f2..351f2d1 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; } }