]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Fix halved disk used/free when drive was very large.
authorToni Wilen <twilen@winuae.net>
Sat, 20 Oct 2018 11:55:45 +0000 (14:55 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 20 Oct 2018 11:55:45 +0000 (14:55 +0300)
filesys.cpp

index dd23cd05ffd9037f28f3987cfe9cfe86f6cfb7a8..e42433feece7057b49b7f544ce95f6466738c0bd 100644 (file)
@@ -630,9 +630,8 @@ static void get_usedblocks(struct fs_usage *fsu, bool fs, int *pblocksize, uae_s
                                break;
                        blocksize *= 2;
                }
-       } else {
-               numblocks = fsu->total / blocksize;
        }
+       numblocks = fsu->total / blocksize;
        inuse = (numblocks * blocksize - fsu->avail) / blocksize;
        if (inuse > numblocks)
                inuse = numblocks;