mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Merge pull request #2263 from csoler/v0.6-BugFixing_8
Attempt to improve BW graph
This commit is contained in:
commit
104facdfe2
16 changed files with 445 additions and 538 deletions
|
@ -819,8 +819,7 @@ bool ftServer::ExtraFileAdd(std::string fname, const RsFileHash& hash, uint64_t
|
|||
bool ftServer::ExtraFileRemove(const RsFileHash& hash)
|
||||
{ return mFileDatabase->removeExtraFile(hash); }
|
||||
|
||||
bool ftServer::ExtraFileHash(
|
||||
std::string localpath, rstime_t period, TransferRequestFlags flags )
|
||||
bool ftServer::ExtraFileHash( std::string localpath, rstime_t period, TransferRequestFlags flags )
|
||||
{
|
||||
constexpr rstime_t uintmax = std::numeric_limits<uint32_t>::max();
|
||||
if(period > uintmax)
|
||||
|
|
|
@ -1045,6 +1045,8 @@ bool RsGxsNetTunnelService::receiveSearchRequest(unsigned char *search_request_d
|
|||
search_result_data_size = RsGxsNetTunnelSerializer().size(&search_result_item) ;
|
||||
search_result_data = (unsigned char*)rs_malloc(search_result_data_size) ;
|
||||
|
||||
delete item;
|
||||
|
||||
if(search_result_data == NULL)
|
||||
return false ;
|
||||
|
||||
|
@ -1082,10 +1084,12 @@ bool RsGxsNetTunnelService::receiveSearchRequest(unsigned char *search_request_d
|
|||
|
||||
RsGxsNetTunnelSerializer().serialise(&search_result_item,search_result_data,&search_result_data_size);
|
||||
|
||||
delete item;
|
||||
return true ;
|
||||
}
|
||||
}
|
||||
|
||||
delete item;
|
||||
return false ;
|
||||
}
|
||||
|
||||
|
|
|
@ -390,7 +390,7 @@ void p3GxsReputation::cleanup()
|
|||
#ifdef DEBUG_REPUTATION
|
||||
std::cerr << " ID " << it->first << ": own is negative for more than " << mMaxPreventReloadBannedIds/86400 << " days. Reseting it!" << std::endl;
|
||||
#endif
|
||||
mChanged = true ;
|
||||
should_delete = true;
|
||||
}
|
||||
|
||||
// Delete slots with basically no information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue