diff options
Diffstat (limited to 'os/rt/src/chtm.c')
-rw-r--r-- | os/rt/src/chtm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/rt/src/chtm.c b/os/rt/src/chtm.c index 5ea31c231..9d95bd987 100644 --- a/os/rt/src/chtm.c +++ b/os/rt/src/chtm.c @@ -57,10 +57,12 @@ static inline void tm_stop(time_measurement_t *tmp, tmp->n++;
tmp->last = now - tmp->last - offset;
tmp->cumulative += (rttime_t)tmp->last;
- if (tmp->last > tmp->worst)
+ if (tmp->last > tmp->worst) {
tmp->worst = tmp->last;
- else if (tmp->last < tmp->best)
+ }
+ else if (tmp->last < tmp->best) {
tmp->best = tmp->last;
+ }
}
/*===========================================================================*/
|