File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugins/metrics/src/main/java/org/apache/cloudstack/metrics Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2121
2222import java .lang .reflect .InvocationTargetException ;
2323import java .text .DecimalFormat ;
24+ import java .text .DecimalFormatSymbols ;
2425import java .util .ArrayList ;
2526import java .util .Date ;
2627import java .util .HashMap ;
2728import java .util .List ;
29+ import java .util .Locale ;
2830import java .util .Map ;
2931import java .util .Properties ;
3032import java .util .stream .Collectors ;
@@ -461,8 +463,8 @@ protected ListResponse<VmMetricsStatsResponse> createVmMetricsStatsResponse(List
461463 * @return the set of responses that was created.
462464 */
463465 protected List <StatsResponse > createStatsResponse (List <VmStatsVO > vmStatsList ) {
464- List <StatsResponse > statsResponseList = new ArrayList <StatsResponse >();
465- DecimalFormat decimalFormat = new DecimalFormat ("#.##" );
466+ List <StatsResponse > statsResponseList = new ArrayList <>();
467+ DecimalFormat decimalFormat = new DecimalFormat ("#.##" , DecimalFormatSymbols . getInstance ( Locale . ENGLISH ) );
466468 for (VmStatsVO vmStats : vmStatsList ) {
467469 StatsResponse response = new StatsResponse ();
468470 response .setTimestamp (vmStats .getTimestamp ());
You can’t perform that action at this time.
0 commit comments