latester: Add statistics about data out of histogram range
[can-benchmark.git] / latester / latester.c
index ff627dc..72e123b 100644 (file)
@@ -894,6 +894,8 @@ int main(int argc, const char *argv[])
                histogram_stats(&histogram_gw, &hs);
                double avg = hs.count ? (double)hs.sum/hs.count : 0;
                fprintf(opt.f_stat, "avg=%g\n", avg);
+               fprintf(opt.f_stat, "out_of_range_below=%d\n", hs.below);
+               fprintf(opt.f_stat, "out_of_range_above=%d\n", hs.above);
                for (i = 0; i <= 20; i++)
                        fprintf(opt.f_stat, "percentile%d=%d\n", i*5, hs.percentile[i*5]);