From: Toni Wilen Date: Sat, 20 Oct 2018 11:55:45 +0000 (+0300) Subject: Fix halved disk used/free when drive was very large. X-Git-Tag: 4100~52 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=14e08f9f39257ad262a1880c90326d9c946d8927;p=francis%2Fwinuae.git Fix halved disk used/free when drive was very large. --- diff --git a/filesys.cpp b/filesys.cpp index dd23cd05..e42433fe 100644 --- a/filesys.cpp +++ b/filesys.cpp @@ -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;