rcuja testpop: cleanup distribution output
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Jun 2013 17:40:53 +0000 (13:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 6 Jun 2013 17:40:53 +0000 (13:40 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rcuja/testpop.c

index 0315c49951034c32e31fcbdb5679f6545a7f819b..3b5833e70a61c18839f153fd0bce48ae5d765c50 100644 (file)
@@ -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.026584 seconds and 4 git commands to generate.