rcuja: update copyright dates
[urcu.git] / rcuja / testpop.c
index 0315c49951034c32e31fcbdb5679f6545a7f819b..adbe4c57bec0531fb1a35acaea7559838948dc25 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Userspace RCU library - RCU Judy Array population size test
  *
- * Copyright 2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright 2012-2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -258,6 +258,8 @@ void print_distrib(void)
                return;
        printf("Distribution:\n");
        for (i = 0; i < 256; i++) {
+               if (!subclass_len_distrib[i])
+                       continue;
                printf("(%u, %u, %llu%%) ",
                        i, subclass_len_distrib[i],
                        100 * (unsigned long long) subclass_len_distrib[i] / tot);
This page took 0.02363 seconds and 4 git commands to generate.