diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 81ec51fe4c7..c459d069851 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -751,7 +751,7 @@ args.response.error("Duration of Scale Up Policy should be a number."); return; } - if(args.data.scaleUpDuration < args.data.interval) { + if(parseInt(args.data.scaleUpDuration) < parseInt(args.data.interval)) { args.response.error("Duration of Scale Up Policy must be greater than or equal to Polling Interval."); return; } @@ -769,7 +769,7 @@ args.response.error("Duration of Scale Down Policy should be a number."); return; } - if(args.data.scaleDownDuration < args.data.interval) { + if(parseInt(args.data.scaleDownDuration) < parseInt(args.data.interval)) { args.response.error("Duration of Scale Down Policy must be greater than or equal to Polling Interval."); return; }