]> git.saurik.com Git - cydia.git/blobdiff - Cydia.app/storage.js
Apple's Reachability code is ludicrously complex (and APSL).
[cydia.git] / Cydia.app / storage.js
index 02dc51b7d0859a1208764e118092a1200f47633b..ae8cb85007ec4442bbaae7559525974a8a382038 100644 (file)
@@ -57,6 +57,8 @@ var setup = function (name, root, folders) {
         for (var i = 0; i != folders.length; ++i) {
             var folder = folders[i];
             var usage = cydia.du(folder[1]);
+            if (usage == null)
+                usage = 0;
             var color = colors[i + 2];
             var percent = usage / kb;
             list(legend, color, folder[0], percent);
@@ -81,6 +83,6 @@ $(function () {
         ["Themes", "/Library/Themes/"],
         ["iTunes", "/var/mobile/Media/iTunes_Control/"],
         ["App Store", "/var/mobile/Applications/"],
-        ["Photos", "/var/mobile/Media/DCIM/"]
+        ["Camera", "/var/mobile/Media/DCIM/"]
     ]);
 });