Author: adietish
Date: 2011-02-10 12:08:23 -0500 (Thu, 10 Feb 2011)
New Revision: 29106
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
Log:
[JBIDE-8354] removed case where null-status was returned, decreased timeout to 3 minutes,
now reporting real lapse of time (was: simple stepwise increase),
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-02-10
17:00:05 UTC (rev 29105)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/rse/util/RSEUtils.java 2011-02-10
17:08:23 UTC (rev 29106)
@@ -158,7 +158,7 @@
private static int getProgress(long current, long last, double scale) {
double progress = (current - last) * scale;
- return (int) Math.floor(progress);
+ return (int) Math.ceil(progress);
}
public static Job connect(final String connectionName, final IConnectorService service)
Show replies by date