]> git.pld-linux.org Git - packages/bb.git/blob - pulse.patch
- patch from Gentoo
[packages/bb.git] / pulse.patch
1 --- bb-1.3.0/timers.c.pulse     2017-06-30 21:37:27.711687696 +0200
2 +++ bb-1.3.0/timers.c   2017-06-30 21:46:36.218568976 +0200
3 @@ -483,14 +483,17 @@ tl_process_group (tl_group * group, int
4               int time = timer->interval - tl_lookup_timer (timer);
5               if (time <= 0)
6                 {
7 +                 int n;
8                   if (activated != NULL)
9                     (*activated)++;
10                   again = 1;
11                   tl_reset_timer (timer);
12                   if (time < -200 * 1000000)
13                     time = 0;   /*underflow? */
14 -                 tl_slowdown_timer (timer, time);
15 -                 time = timer->interval + time;
16 +                 n = -(time) / timer->interval + 1;
17 +                 time += timer->interval * n;
18 +
19 +                 tl_slowdown_timer (timer, time - timer->interval);
20                   timer->handler (timer->userdata);
21                   tl_update_time ();
22                 }
This page took 0.081817 seconds and 3 git commands to generate.