Reduce alert spam in rtc_event_log_visualizer

Bug: webrtc:11564
Change-Id: I4fdd6284b35cedded4d8b623dc0b7f8e1534c495
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175649
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31324}
This commit is contained in:
Bjorn Terelius
2020-05-19 14:30:35 +02:00
committed by Commit Bot
parent c5324fb7bd
commit b914819944
3 changed files with 31 additions and 21 deletions

View File

@ -41,7 +41,7 @@ enum class TriageAlertType {
struct TriageAlert {
TriageAlertType type = TriageAlertType::kUnknown;
int count = 0;
float first_occurence = -1;
float first_occurrence = -1;
std::string explanation;
};
@ -70,7 +70,7 @@ class TriageHelper {
if (it == triage_alerts_.end()) {
TriageAlert alert;
alert.type = type;
alert.first_occurence = time_seconds;
alert.first_occurrence = time_seconds;
alert.count = 1;
alert.explanation = std::string(explanation);
triage_alerts_.insert(std::make_pair(type, alert));