mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
(cherry picked from commit a6c276a5b7afe41d4a1895bd7d4339d874e896b6)
This commit is contained in:
1 parent
fa2c853b80
commit
122ab81d27
1 file changed
+2
-2
@@ -765,7 +765,7 @@ define(function(require) {
|
||||
baseCal = base;
|
||||
unit = "GB";
|
||||
}
|
||||
if (value && value.length > 0) {
|
||||
if (value >= 0) {
|
||||
valueInMB = value;
|
||||
if(!isNaN(min) && parseInt(min, 10) > valueInMB ){
|
||||
valueInMB = min;
|
||||
@@ -799,7 +799,7 @@ define(function(require) {
|
||||
unit = "MB";
|
||||
break;
|
||||
}
|
||||
if (value && value.length > 0) {
|
||||
if (value >= 0) {
|
||||
valueInMB = value * baseCal;
|
||||
if(!isNaN(min) && parseInt(min, 10) > valueInMB ){
|
||||
valueInMB = min;
|
||||
|
||||
Reference in new issue
Block a user