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

Add some utility functions #130

Open
nspruit opened this issue Jun 30, 2014 · 0 comments
Open

Add some utility functions #130

nspruit opened this issue Jun 30, 2014 · 0 comments

Comments

@nspruit
Copy link
Collaborator

nspruit commented Jun 30, 2014

Add (for instance) the following pieces code into utility classes to avoid duplication:

"Status: "+ Utility.convertDownloadStateIntToMessage(download.getStatus())+((download.getStatus() == 2 || download.getStatus() == 3) ?  " (" + Math.round(download.getProgress() * 100) + "%)" : "")
"Down: "+ Utility.convertBytesPerSecToString(download.getDownloadSpeed())
"Up: "+ Utility.convertBytesPerSecToString(download.getUploadSpeed())
(download.getStatus() == 3)? "ETA: " + Utility.convertSecondsToString(download.getETA()): ""
@nspruit nspruit added this to the Future work and polishing milestone Jun 30, 2014
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