Fix failure when median is enabled and --period is not set and logs are not sorted
Replacing duration_list with an itertool.chain object breaks the API promise that it must have an append method. This cause all accumulate calls to fail when simultaneously: - median tracking is enabled - period is not set and some scaling happens (ex: there is more than 4 days of data) - log lines are being fed in a non-chronological order, where later lines are timestamped before the time some scaling happened (ex: log line for day 1, then day 5, then day 1 again) When this happens, data accumulation will fail on these later lines, causing the report to be only partial - for example errors will be missing.
Showing
Please register or sign in to comment