mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 10:05:19 -04:00
Completed most of ftserver class.
Also changes to make everything fit together. changes to Interface to support srcId list. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@675 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d7e1a90c28
commit
189dcbb482
15 changed files with 512 additions and 166 deletions
|
@ -108,7 +108,7 @@ void ftExtraList::hashAFile()
|
|||
|
||||
/* hash it! */
|
||||
std::string name, hash;
|
||||
uint64_t size;
|
||||
//uint64_t size;
|
||||
if (RsDirUtil::hashFile(details.info.path, details.info.fname,
|
||||
details.info.hash, details.info.size))
|
||||
{
|
||||
|
@ -204,7 +204,7 @@ bool ftExtraList::cleanupOldFiles()
|
|||
for(it = mFiles.begin(); it != mFiles.end(); it++)
|
||||
{
|
||||
/* check timestamps */
|
||||
if (it->second.start + it->second.period < now)
|
||||
if (it->second.start + it->second.period < (unsigned) now)
|
||||
{
|
||||
toRemove.push_back(it->first);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue