Clean peers.d periodically and delete peers older than 30 days.

This commit is contained in:
Adam Ierymenko 2017-10-25 16:08:14 -07:00
parent fac7dc9c91
commit 2cc4dc5a6f
3 changed files with 11 additions and 4 deletions

View file

@ -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