From 25c3eb26dc844f02dc229fb51410eadbba81326b Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 11 Dec 2013 00:53:27 +0100 Subject: Remove some dead code last_pressure is updated a couple of lines later, so no need to do it here. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- profile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profile.c b/profile.c index 8d9100bd6..ed550376b 100644 --- a/profile.c +++ b/profile.c @@ -1393,12 +1393,9 @@ void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int if (data->depth > max_depth) max_depth = data->depth; /* Try to detect gas changes */ - if (GET_PRESSURE(data) > last_pressure+2000) - last_pressure = GET_PRESSURE(data); - else + if (GET_PRESSURE(data) < last_pressure+2000) bar_used += last_pressure-GET_PRESSURE(data); - count+=1; last_sec = data->sec; last_pressure = GET_PRESSURE(data); -- cgit v1.2.3-70-g09d2