cppcheck
cppcheck copied to clipboard
donate-cpu: collect and avoid packages with no files to process
This currently only implements the client and server calls to send this information to the server. It does not use the data yet.
The idea is the following:
- store the packages without files to process in a separate file e.g.
packages_nodata.txt - no-op the entry in the in-memory
packagesand skip those entries in thegetcalls - on start-up remove the
packages_nodata.txtentries from the list generated frompackages.txt - remove all non-matching entries from
packages_nodata.txtand store that cleaned up file so the list won't grow indefinitely
[2022-11-20 15:33:03.543381] work path: /home/sshuser/daca@home
[2022-11-20 15:33:03.588505] packages: 38683
[2022-11-20 15:33:03.590235] packages_nodata: 348
[2022-11-20 15:33:03.591534] removing packages with no files to process
[2022-11-20 15:33:03.605872] packages: 38335
[2022-11-20 15:33:03.608985] version 1.3.32
FYI after an almost complete run with only some of the clients providing this info we have already filtered out almost 11,000 packages!