create first beta release #23

Merged
localhorst merged 42 commits from develop into master 2020-09-15 13:47:07 +02:00
Showing only changes of commit c13182b77f - Show all commits

View File

@ -47,13 +47,13 @@ uint32_t Drive::getPowerCycles(void)
}
string Drive::sCapacityToText() {
if(getCapacity() <= (999*1000000000U)) {
if(getCapacity() <= (999*1000000000UL)) {
// Less or even 999 GB --> GB
return to_string(getCapacity() / 1000000000U) + " GB";
return to_string(getCapacity() / 1000000000UL) + " GB";
}
else {
// More 999 GB --> TB
return to_string(getCapacity() / 1000000000000U) + " TB";
return to_string(getCapacity() / 1000000000000UL) + " TB";
}
return "ERROR";
}