Fixed separase case characters in property stats.

This commit is contained in:
Christian P. MOMON 2022-07-25 18:32:26 +02:00
parent c98fc07e1b
commit 3cd843e1f1

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2020 Christian Pierre MOMON <christian@momon.org> * Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org>
* *
* This file is part of StatoolInfos, simple service statistics tool. * This file is part of StatoolInfos, simple service statistics tool.
* *
@ -162,11 +162,12 @@ public class PropertyStats
for (PathProperty property : properties) for (PathProperty property : properties)
{ {
PropertyStat stat = this.stats.get(property.getPath()); String path = property.getPath().toLowerCase();
PropertyStat stat = this.stats.get(path);
if (stat == null) if (stat == null)
{ {
stat = new PropertyStat(property.getPath()); stat = new PropertyStat(path);
} }
if (StringUtils.isBlank(property.getValue())) if (StringUtils.isBlank(property.getValue()))