Fixup Savestate Progress

This commit is contained in:
Elad Ashkenazi 2024-03-24 20:05:10 +02:00
parent 3393d13b67
commit 2e824827b7

View File

@ -688,7 +688,7 @@ void gui_application::InitializeCallbacks()
{
*half_seconds += 1;
const usz bytes_written = atomic_storage<usz>::load(ar_ptr->pos);
const usz bytes_written = ar_ptr->get_size();
pdlg->setLabelText(text_base.arg(*half_seconds / 2).arg(gui::utils::format_byte_size(bytes_written)));
// 300MB -> 50%, 600MB -> 75%, 1200MB -> 87.5% etc