Module: xenomai-3
Branch: wip/dovetail
Commit: 695e1d2093d1242274fdf2c308a1c82e1ea226a6
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=695e1d2093d1242274fdf2c308a1c82e1ea226a6

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 410f480..34a35f5 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