Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guest add volume size missmatch #1340

Open
morecool opened this issue Feb 3, 2021 · 0 comments
Open

Guest add volume size missmatch #1340

morecool opened this issue Feb 3, 2021 · 0 comments

Comments

@morecool
Copy link

morecool commented Feb 3, 2021

var sizeInMB = parseInt(settings['capacity']) * 1024;

                var sizeInMB = parseInt(settings['capacity']) * 1024;
                settings['capacity'] = sizeInMB;

that line means sizeInKB... just multiple 1024 again..

                var sizeInMB = parseInt(settings['capacity']) * 1024 * 1024;
                settings['capacity'] = sizeInMB;

and WebUI is displays by GB... so

                var sizeInMB = parseInt(settings['capacity']) * 1024 * 1024;
                var sizeInGB = sizeInMB * 1024;
                settings['capacity'] = sizeInGB;

regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant