diff options
Diffstat (limited to 'tools/start-stop-daemon.c')
-rw-r--r-- | tools/start-stop-daemon.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/start-stop-daemon.c b/tools/start-stop-daemon.c index 39527eca7..7372cc844 100644 --- a/tools/start-stop-daemon.c +++ b/tools/start-stop-daemon.c @@ -869,12 +869,13 @@ static int run_stop_schedule(void) if (ratio < 10) ratio++; - TVCALC(interval, - ratio * (TVELEM(&after) - TVELEM(&before) - + TVADJUST)); - TVCALC(maxinterval, - TVELEM(&stopat) - TVELEM(&after) - + TVADJUST); + TVCALC(interval, ratio + * (TVELEM(&after) + - TVELEM(&before) + + TVADJUST)); + TVCALC(maxinterval, TVELEM(&stopat) + - TVELEM(&after) + + TVADJUST); if (timercmp(&interval, &maxinterval, >)) interval = maxinterval; |