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

file upload stats (lib) #142

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

file upload stats (lib) #142

wants to merge 3 commits into from

Conversation

defnax
Copy link
Contributor

@defnax defnax commented Feb 11, 2024

@csoler
Copy link
Contributor

csoler commented Feb 25, 2024

Could you add the code to load/save this info?

@defnax
Copy link
Contributor Author

defnax commented Feb 26, 2024

You mean move this to p3FileDatabase class, i dont know yet ,you are more expert about this how to do it, maybe for you 5 minutes :)

  • add to p3FileDatabase class the functions to update the upload stats, as called from ftServer (no mutex needed in ftServer for that since the one is p3FileDatabase will be used)
  • create a new RsItem in rsfilelistitems.h to store the upload stats.
  • add the proper lines to load/save these stats in p3FileDatabase::loadList() and saveList() using these created items

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

Successfully merging this pull request may close these issues.

2 participants