Fixed map padding

This commit is contained in:
Luca Frosini 2021-11-22 18:09:15 +01:00
parent 19813a46bb
commit 766df57d5f
1 changed files with 18 additions and 1 deletions

View File

@ -130,7 +130,24 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
objectNode.put(key, 0);
}
}else {
Set<String> keys = clz.newInstance().getAggregatedFields();
for(String key : keys) {
switch (key) {
case AggregatedRecord.START_TIME:
break;
case AggregatedRecord.END_TIME:
break;
case AggregatedRecord.AGGREGATED:
break;
default:
objectNode.put(key, 0);
break;
}
}
}
return objectNode;
}