Module: xenomai-forge
Branch: master
Commit: 73561e3a3a616a24f62c1ba9587dd3d12ac4b820
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=73561e3a3a616a24f62c1ba9587dd3d12ac4b820

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep 23 11:46:09 2014 +0200

demo/alchemy/latency: fix overrun handling

---

 demo/alchemy/latency.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/demo/alchemy/latency.c b/demo/alchemy/latency.c
index cebf663..a8af526 100644
--- a/demo/alchemy/latency.c
+++ b/demo/alchemy/latency.c
@@ -135,11 +135,10 @@ static void latency(void *cookie)
                                                err);
                                        exit(EXIT_FAILURE); /* Timer stopped. */
                                }
-
                                overrun += ov;
                                expected_tsc += period_tsc * ov;
-                       } else
-                               expected_tsc += period_tsc;
+                       }
+                       expected_tsc += period_tsc;
 
                        if (freeze_max && (dt > gmaxjitter)
                            && !(finished || warmup)) {


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to