From a7637e9e01fed05142917d8f04f5c7c677e78f38 Mon Sep 17 00:00:00 2001 From: Aditya Goteti Date: Tue, 20 Feb 2024 13:07:22 +0530 Subject: [PATCH] corrected the estimates formula --- src/main/java/com/amazon/aws/am2/appmig/estimate/Estimator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/amazon/aws/am2/appmig/estimate/Estimator.java b/src/main/java/com/amazon/aws/am2/appmig/estimate/Estimator.java index 781f72a..bd834f6 100644 --- a/src/main/java/com/amazon/aws/am2/appmig/estimate/Estimator.java +++ b/src/main/java/com/amazon/aws/am2/appmig/estimate/Estimator.java @@ -197,7 +197,7 @@ private Map findSQLStats(StandardReport report) { // creation of new statements, as a ballpark number 8 function points can be modified. float total = stats.get(SELECT) + stats.get(INSERT) + stats.get(CREATE) + stats.get(DELETE) + stats.get(UPDATE) + stats.get(DROP) + stats.get(MERGE); stats.put(TOTAL, total); - this.totalSQLPersonDays = (total / (BFFP.SQL.getValue() * 8) ) ; + this.totalSQLPersonDays = (total / BFFP.SQL.getValue()); this.totalSQLPersonDays = (this.totalSQLPersonDays > 0 && this.totalSQLPersonDays <= 0.5) ? (float)0.5 : this.totalSQLPersonDays; this.totalSQLPersonDays = BigDecimal.valueOf(this.totalSQLPersonDays).setScale(2, RoundingMode.HALF_UP).floatValue(); stats.put(TMPL_PH_TOTAL_MHRS, Float.valueOf(formatter.format(this.totalSQLPersonDays)));