mirror of
https://github.com/valitydev/beholder.git
synced 2024-11-06 00:35:19 +00:00
Use max value for duplicate metrics (#20)
This commit is contained in:
parent
f714835934
commit
ca4c97ad70
@ -128,7 +128,7 @@ public class MetricsService {
|
||||
.flatMap(formDataResponse ->
|
||||
formDataResponse.getNetworkLogs().stream()
|
||||
.map(log -> convertToResourceLoadingEntry(formDataResponse, log)))
|
||||
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
||||
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, Math::max));
|
||||
}
|
||||
|
||||
private Map.Entry<Tags, Double> convertToResourceLoadingEntry(FormDataResponse formDataResponse,
|
||||
|
Loading…
Reference in New Issue
Block a user