Clean peers.d periodically and delete peers older than 30 days.
This commit is contained in:
parent
fac7dc9c91
commit
2cc4dc5a6f
3 changed files with 11 additions and 4 deletions
|
@ -142,7 +142,7 @@ public:
|
|||
* @param olderThan Last modified older than timestamp (ms since epoch)
|
||||
* @return Number of cleaned files or negative on fatal error
|
||||
*/
|
||||
static long cleanDirectory(const char *path,const uint64_t olderThan);
|
||||
static long cleanDirectory(const char *path,const int64_t olderThan);
|
||||
|
||||
/**
|
||||
* Delete a directory and all its files and subdirectories recursively
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue