Module: xenomai-3
Branch: stable-3.0.x
Commit: cf20c8bc9581d3c1b01af5032d0932d3f5203eed
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=cf20c8bc9581d3c1b01af5032d0932d3f5203eed

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Apr 30 07:25:23 2016 +0200

alchemy/queue: fix calculation of metadata overhead

---

 lib/alchemy/queue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/alchemy/queue.c b/lib/alchemy/queue.c
index 891cfd1..9c88018 100644
--- a/lib/alchemy/queue.c
+++ b/lib/alchemy/queue.c
@@ -232,7 +232,7 @@ int rt_queue_create(RT_QUEUE *queue, const char *name,
         */
        if (qlimit == Q_UNLIMITED)
                ret = heapobj_init(&qcb->hobj, qcb->name,
-                                  poolsize + (poolsize / 5));
+                                  poolsize + (poolsize * 5 / 100));
        else
                ret = heapobj_init_array(&qcb->hobj, qcb->name,
                                         (poolsize / qlimit) *


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

Reply via email to