[JHV 2.0] Frame rate calculation

Bug #343113 reported by Juan Pablo
2
Affects Status Importance Assigned to Milestone
JHelioviewer
Fix Released
High
Unassigned

Bug Description

In the class J2KRender the frame rate is calculated as follows:

NumberFormat formatter = new DecimalFormat("0.0");
double fps = Double.valueOf(formatter.format(frameRate));

this produces an exception, at least in computers like the mine where the decimal symbol is ',' (comma) instead of the '.' (point). If the aim is only to reduce the number "frameRate" to just one decimal, maybe one more international solution would be:

double fps = (double)Math.round(frameRate * 10.0) / 10.0;

Tags: jhv2.0
affects: helioviewer.org → jhelioviewer
summary: - Frame rate calculation
+ [JHV 2.0] Frame rate calculation
Changed in jhelioviewer:
status: New → Incomplete
tags: added: jhv2.0
Changed in jhelioviewer:
status: Incomplete → Confirmed
importance: Undecided → High
Changed in jhelioviewer:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.