Fixed capacity calculation for small drives (#346)

This commit is contained in:
Uwe Seimet 2021-10-19 17:45:41 +02:00 committed by GitHub
parent b8722efe0b
commit 00e8855e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,6 +52,7 @@ void SCSIHD::FinalizeSetup(const Filepath &path, off_t size)
unit = "MB";
}
else {
capacity /= 1000;
unit = "KB";
}
stringstream product;