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

Get-RoboItem with -Unit GB on small items gives weird TotalSize #15

Open
fjollberg opened this issue Apr 27, 2022 · 1 comment
Open
Assignees

Comments

@fjollberg
Copy link
Contributor

fjollberg commented Apr 27, 2022

Get-RoboItem with -Unit GB on small items gives weird TotalSize where an expected '0' is missing.
The property Speed is also mangled.

This is not a major issue to me as I switched over to the new TotalSizeBytes for my purposes.

Get-RoboItem \Some\path -Recurse -Threads 16 -Unit GB

Source : \Some\path
Destination : NULL
Command : Robocopy.exe "\Some\path" "NULL" . /r:3 /w:3 /e /MT:16 /l /bytes /TEE /np /njh /fp /ndl /ts
...
TotalSize : GB
TotalSizeCopied : GB
TotalSizeIgnored : GB
TotalSizeMismatched : GB
TotalSizeFailed : GB
TotalSizeExtra : GB
TotalSizeBytes : 50793
Speed : GB/s
ExitCode : 1
Success : True
LastExitCodeMessage : [SUCCESS]All files were copied successfully.

@fjollberg fjollberg changed the title Get-RoboItem with -Unit GB on small items give weird TotalSize Get-RoboItem with -Unit GB on small items gives weird TotalSize Apr 27, 2022
@sbergwall sbergwall self-assigned this May 6, 2022
@sbergwall
Copy link
Owner

Hi.

The problem with strange output should be fixed in the Dev branch with the introduction of parameter -Precision which defaults to showing 4 digits after the decimal point (28 digits are the highest possible).

Regarding Speed, Robocopy doesnt track speed when using /L it seems. Will either look at not showing it or code something own.

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

2 participants