Fixed uninitialized output.
Hi, Erik.
I have found a case than program output an uninitialized value in max_ns column. Could you please review & accept my changes?
Before:
cpu threshold_ns hiccups pct99_ns pct999_ns max_ns 0 10000 103 11138700 11299768 11299768 1 10000 53 903546 903546 903546 2 10000 801 478439 2191384 2191384 3 10000 700 1032081 4059039 4059039 4 10000 23 5671475 5671475 5671475 5 10000 50 4113504 4113504 4113504 6 10000 0 0 0 1073745922 7 10000 0 0 0 1073745922 8 10000 0 0 0 1073745922 9 10000 0 0 0 1073745922 10 10000 0 0 0 1073745922 11 10000 0 0 0 1073745922
After:
cpu threshold_ns hiccups pct99_ns pct999_ns max_ns 0 10000 1880 4671424 17808201 23169426 1 10000 2107 6602945 17240588 24006352 2 10000 3734 4763309 10516253 20016167 3 10000 3679 4344128 8931000 11977959 4 10000 4405 4898646 12136431 16886143 5 10000 2750 6748072 11705750 23869041 6 10000 0 0 0 0 7 10000 0 0 0 0 8 10000 0 0 0 0 9 10000 0 0 0 0 10 10000 0 0 0 0 11 10000 0 0 0 0
Best regards, Proydakov Evgeny.
@rigtorp did you have any chance to check my, pr ?
Thanks for the PR. I'm not sure how this could happen? Why are the number of samples for cpu 6-11 0? I would rather fix that underlying issue than the output code?
Fixed here https://github.com/rigtorp/hiccups/commit/071656c016a361620db12ff28b22f6d9f18856d8