diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index dadb6e0d7..27a1e481a 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -891,6 +891,8 @@ int CHDDMenuHandler::formatDevice(std::string dev) break; case 1: if (in == '\b' && sscanf(buf, "%d/%d\b", &n, &t) == 2) { + if (t == 0) + t = 1; int percent = 100 * n / t; progress->showLocalStatus(percent); progress->showGlobalStatus(20 + percent / 5);