diff --git a/src/app/application/application.cpp b/src/app/application/application.cpp index 38a2b93..b66514d 100644 --- a/src/app/application/application.cpp +++ b/src/app/application/application.cpp @@ -95,6 +95,12 @@ void Application::PrintSummary() const return; } + if (ZSwapDebugger -> GetPoolTotalSize() == 0) + { + std::cout << "ZSwap is not working. The pool is empty." << std::endl; + return; + } + std::unique_ptr SysInfo = std::make_unique(); const float PoolSize = static_cast(ZSwapDebugger -> GetPoolTotalSize()); const float StoredPages = static_cast(ZSwapDebugger -> GetStoredPages() * SysInfo -> GetPageSize());