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

progressMonitor value only fits one file #45

Open
EParisot opened this issue Jul 13, 2020 · 0 comments
Open

progressMonitor value only fits one file #45

EParisot opened this issue Jul 13, 2020 · 0 comments

Comments

@EParisot
Copy link

Hello and thank you for this usefull package !

I use it to send multiples files (using wildcard 'folder/*.png') between a RaspberryPi and my phone, everything is going well but I noticed that the progress value doesn't handle the multiple files cases and I had to change a bit the package code to :

long newPerc = this.count;// * 100 / max;
(line 629)

Otherwise, it will show a percent compared to the first file, so after the first one is sent, value goes over 100%...
So now I can pass the max value (total size of the folder obtained from sftpLs) and the progress makes more sense to me...

The best for me would be the "max" value not displayed so I can make the division and return a %...

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