reghao 1 rok pred
rodič
commit
8fe3b0065e

+ 1 - 1
oss-console/src/main/java/cn/reghao/oss/console/account/service/impl/FileServiceImpl.java

@@ -23,7 +23,7 @@ import java.util.UUID;
  */
 @Service
 public class FileServiceImpl implements FileService {
-    // 1MiB
+    // 1MB
     private final int bufSize = 1024*1024;
     private final String storeDir = "";
     private final DiskFileRepository diskFileRepository;

+ 6 - 6
oss-console/src/main/java/cn/reghao/oss/console/app/controller/page/UploadChannelPageController.java

@@ -70,12 +70,12 @@ public class UploadChannelPageController {
         }
 
         List<KeyValue> sizeList = new ArrayList<>();
-        sizeList.add(new KeyValue(1024L*1024*2+"", "2MiB"));
-        sizeList.add(new KeyValue(1024L*1024*10+"", "10MiB"));
-        sizeList.add(new KeyValue(1024L*1024*100+"", "100MiB"));
-        sizeList.add(new KeyValue(1024L*1024*1024+"", "1GiB"));
-        sizeList.add(new KeyValue(1024L*1024*1024*10+"", "10GiB"));
-        sizeList.add(new KeyValue(1024L*1024*1024*20+"", "20GiB"));
+        sizeList.add(new KeyValue(1024L*1024*2+"", "2MB"));
+        sizeList.add(new KeyValue(1024L*1024*10+"", "10MB"));
+        sizeList.add(new KeyValue(1024L*1024*100+"", "100MB"));
+        sizeList.add(new KeyValue(1024L*1024*1024+"", "1GB"));
+        sizeList.add(new KeyValue(1024L*1024*1024*10+"", "10GB"));
+        sizeList.add(new KeyValue(1024L*1024*1024*20+"", "20GB"));
 
         int loginUser = UserContext.getUserId();
         List<UserNodeVO> storeNodes = userNodeService.getUserStoreNodes(loginUser);

+ 2 - 2
oss-sdk/src/main/java/cn/reghao/oss/sdk/OssStoreClient.java

@@ -201,7 +201,7 @@ public class OssStoreClient {
             }
 
             FileOutputStream fos = new FileOutputStream(file);
-            // 1MiB
+            // 1MB
             int len = 1024*1024*5;
             byte[] buf = new byte[len];
             int readLen;
@@ -249,7 +249,7 @@ public class OssStoreClient {
             }
 
             FileOutputStream fos = new FileOutputStream(file);
-            // 1MiB
+            // 1MB
             int len = 1024*1024*5;
             byte[] buf = new byte[len];
             int readLen;

+ 1 - 1
oss-store/src/main/java/cn/reghao/oss/store/service/FileStoreService.java

@@ -148,7 +148,7 @@ public class FileStoreService {
         }
 
         FileOutputStream fos = new FileOutputStream(file);
-        // 1MiB
+        // 1MB
         int len = 1024*1024;
         byte[] buf = new byte[len];
         int readLen;

+ 1 - 1
oss-store/src/main/java/cn/reghao/oss/store/service/GetObjectService.java

@@ -22,7 +22,7 @@ import java.nio.charset.StandardCharsets;
 @Service
 public class GetObjectService {
     private final FileMetaMapper fileMetaMapper;
-    // 1MiB
+    // 1MB
     private final int bufSize = 1024*1024;
     private final StoreLocalService storeLocalService;
 

+ 1 - 1
oss-store/src/main/java/cn/reghao/oss/store/service/ObjectMultipartUploadService.java

@@ -25,7 +25,7 @@ import java.util.*;
 @Slf4j
 @Service
 public class ObjectMultipartUploadService {
-    // 20MiB
+    // 20MB
     private final static long PART_SIZE = 1024*1024*20;
     private final FileMetaMapper fileMetaMapper;
     private final FileStoreService fileStoreService;