Skip to content
Snippets Groups Projects
Commit 96f77119 authored by Bhabesh Bhabani Mukhopadhyay's avatar Bhabesh Bhabani Mukhopadhyay
Browse files

Changes in calculation of warning system

Instead of max consider threshold dsv max considered
parent fdb80b8b
No related branches found
No related tags found
No related merge requests found
......@@ -734,14 +734,14 @@ public class AlternariaModel extends I18nImpl implements Model{
if (accumulatedDSV >= 0)
{
if(accumulatedDSV >= THRESHOLD_DSV_MAX)
if(accumulatedDSV >= THRESHOLD_DSV_MIN)
{
result = Result.WARNING_STATUS_HIGH_RISK;
}
else
{
// e.g. 20 -- 30
if((accumulatedDSV < THRESHOLD_DSV_MAX) && (accumulatedDSV >= (THRESHOLD_DSV_MIN - THRESHOLD_DSV_BASE)) )
if((accumulatedDSV < THRESHOLD_DSV_MIN) && (accumulatedDSV >= (THRESHOLD_DSV_MIN - THRESHOLD_DSV_BASE)) )
{
result = Result.WARNING_STATUS_MINOR_RISK;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment