|
|
@@ -21,7 +21,7 @@ public class StorageQuantity {
|
|
|
|
|
|
//默认存储空间为500Mi
|
|
|
public static final StorageQuantity DEFAULT = new StorageQuantity(500);
|
|
|
-
|
|
|
+
|
|
|
//存储单位
|
|
|
public enum Unit{
|
|
|
KB("Ki"),
|
|
|
@@ -39,7 +39,6 @@ public class StorageQuantity {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
public StorageQuantity(int quantity){
|
|
|
this.quantity = Quantity.fromString(quantity + unit.getCode());
|
|
|
}
|