Parcourir la source

Added predictive partition total size for unformatted disk

TC pushbot 5 il y a 4 ans
Parent
commit
c06bea7957
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  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":[""]