OSDN Git Service

intで扱えないものが入ってくる場合があった
[coroid/inqubus.git] / frontend / src / saccubus / worker / impl / convert / Convert.java
index 8e05774..a8747e6 100644 (file)
@@ -203,7 +203,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
                     double per = -1.0;
                     if (m.find()) {
                         final String strTime = m.group(1);
-                        final int time = Integer.parseInt(strTime);
+                        final double time = Double.parseDouble(strTime);
                         per = 100.0 * time / duration;
                         logger.log(Level.FINEST, "time:{0}, duration:{1}", new Object[]{time, duration});
                     }