OSDN Git Service

intで扱えないものが入ってくる場合があった
authoryukihane <yukihane.feather@gmail.com>
Tue, 30 Aug 2011 03:07:27 +0000 (12:07 +0900)
committeryukihane <yukihane.feather@gmail.com>
Tue, 30 Aug 2011 03:07:27 +0000 (12:07 +0900)
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});
                     }