diff options
Diffstat (limited to 'apps/plugins/mandelbrot.c')
-rw-r--r-- | apps/plugins/mandelbrot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/mandelbrot.c b/apps/plugins/mandelbrot.c index 00542cbb14..dbab55579d 100644 --- a/apps/plugins/mandelbrot.c +++ b/apps/plugins/mandelbrot.c | |||
@@ -643,7 +643,7 @@ void calc_mandelbrot_low_prec(void) | |||
643 | 643 | ||
644 | /* be nice to other threads: | 644 | /* be nice to other threads: |
645 | * if at least one tick has passed, yield */ | 645 | * if at least one tick has passed, yield */ |
646 | if (*rb->current_tick > last_yield) { | 646 | if (TIME_AFTER(*rb->current_tick, last_yield)) { |
647 | rb->yield(); | 647 | rb->yield(); |
648 | last_yield = *rb->current_tick; | 648 | last_yield = *rb->current_tick; |
649 | } | 649 | } |
@@ -706,7 +706,7 @@ void calc_mandelbrot_high_prec(void) | |||
706 | 706 | ||
707 | /* be nice to other threads: | 707 | /* be nice to other threads: |
708 | * if at least one tick has passed, yield */ | 708 | * if at least one tick has passed, yield */ |
709 | if (*rb->current_tick > last_yield) { | 709 | if (TIME_AFTER(*rb->current_tick, last_yield)) { |
710 | rb->yield(); | 710 | rb->yield(); |
711 | last_yield = *rb->current_tick; | 711 | last_yield = *rb->current_tick; |
712 | } | 712 | } |