소스 검색

Added predictive partition total size for unformatted disk

TC pushbot 5 4 년 전
부모
커밋
c06bea7957
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      web/SystemAO/disk/diskmg.html

+ 4 - 3
web/SystemAO/disk/diskmg.html

@@ -650,11 +650,12 @@
                           var diskID = thisDisk["name"];
                           if (thisDisk["children"] === undefined || thisDisk["children"] === null){
                               //This disk do not have any child. Assume a large read-only raw partition.
+                              var size = thisDisk[size] || 0;
                               disks[diskID] = {
-                                  "partitionsTotalSize":0,
-                                  "partitionNames":["Hotplug"],
+                                  "partitionsTotalSize":size,
+                                  "partitionNames":["Raw"],
                                   "partitionID":["✖"],
-                                  "partitionVolume":[0],
+                                  "partitionVolume":[size],
                                   "Type":[thisDisk["type"]],
                                   "Mounted":[thisDisk["mountpoint"] !== null],
                                   "Format":[""]