You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/08/21 01:20:00 UTC
git commit: CS-15955: cloudstack 3.0 UI - autoscale - validation -
convert type of scale policy duration and polling interval when comparing
them (Reviewed-by: Brian)
Updated Branches:
refs/heads/autoscale ae10740ae -> cebd65f92
CS-15955: cloudstack 3.0 UI - autoscale - validation - convert type of scale policy duration and polling interval when comparing them (Reviewed-by: Brian)
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/cebd65f9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/cebd65f9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/cebd65f9
Branch: refs/heads/autoscale
Commit: cebd65f92a296b177cce5dee1f4a53e1cb91c4f0
Parents: ae10740
Author: Jessica Wang <je...@citrix.com>
Authored: Mon Aug 20 16:14:33 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Mon Aug 20 16:19:08 2012 -0700
----------------------------------------------------------------------
ui/scripts/autoscaler.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cebd65f9/ui/scripts/autoscaler.js
----------------------------------------------------------------------
diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js
index 81ec51f..c459d06 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;
}