mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-01 11:21:25 -05:00
randomly force full update of RsGxsUpdateBroadcastBase so as to get fresh statistics about GXS groups from time to time
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8226 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4624d53dd7
commit
4c94617bb0
@ -40,6 +40,11 @@ void RsGxsUpdateBroadcastBase::securedUpdateDisplay()
|
|||||||
emit fillDisplay(mFillComplete);
|
emit fillDisplay(mFillComplete);
|
||||||
mFillComplete = false;
|
mFillComplete = false;
|
||||||
|
|
||||||
|
// Randomly force updating popularity, and other statistics that can only be retrieved through a
|
||||||
|
// complete update.
|
||||||
|
if(RSRandom::random_f32() < 0.2)
|
||||||
|
mFillComplete = true ;
|
||||||
|
|
||||||
/* Clear updated ids */
|
/* Clear updated ids */
|
||||||
mGrpIds.clear();
|
mGrpIds.clear();
|
||||||
mGrpIdsMeta.clear(),
|
mGrpIdsMeta.clear(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user