mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 09:18:45 -04:00
fixed virtual names
This commit is contained in:
parent
43f4f5d2d9
commit
2d1824b01d
5 changed files with 55 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
#include "util/rsdir.h"
|
||||
#include "rsserver/p3face.h"
|
||||
#include "hash_cache.h"
|
||||
|
||||
#define HASHSTORAGE_DEBUG 1
|
||||
|
@ -25,6 +26,8 @@ void HashStorage::data_tick()
|
|||
mRunning = false ;
|
||||
std::cerr << "done." << std::endl;
|
||||
|
||||
RsServer::notify()->notifyHashingInfo(NOTIFY_HASHTYPE_FINISH, "") ;
|
||||
|
||||
usleep(2*1000*1000); // when no files to hash, just wait for 2 secs. This avoids a dramatic loop.
|
||||
return ;
|
||||
}
|
||||
|
@ -33,6 +36,10 @@ void HashStorage::data_tick()
|
|||
|
||||
std::cerr << "Hashing file " << job.full_path << "..." ; std::cerr.flush();
|
||||
|
||||
std::string tmpout;
|
||||
//rs_sprintf(tmpout, "%lu/%lu (%s - %d%%) : %s", cnt+1, n_files, friendlyUnit(size).c_str(), int(size/double(total_size)*100.0), fe.name.c_str()) ;
|
||||
|
||||
RsServer::notify()->notifyHashingInfo(NOTIFY_HASHTYPE_HASH_FILE, job.full_path) ;
|
||||
|
||||
if(!RsDirUtil::getFileHash(job.full_path, hash,size, this))
|
||||
std::cerr << "ERROR: cannot hash file " << job.full_path << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue